1.20.x installer.pages.inc | installer_browser_install_button_form($form, &$form_state) |
Shows an install button for the Install Queue block.
File
- modules/
installer/ installer.pages.inc, line 834 - Page callbacks used by the Installer browse pages.
Code
function installer_browser_install_button_form($form, &$form_state) {
$project_type = installer_browser_type_from_path();
$form['#attributes']['class'] = 'installer-browser-install-button-form';
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Install'),
);
$form['#action'] = url('admin/installer/install/select_versions');
$form['cancel'] = array(
'#type' => 'link',
'#name' => 'cancel',
'#title' => t('Clear queue'),
'#href' => 'admin/installer/reset/' . $project_type . '/clear',
'#options' => array(),
);
return $form;
}