'select', '#title' => t('Destination folder'), '#options' => $options, '#default_value' => $destination, ); $form['#submit'][0] = 'module_install_update_manager_install_form_submit'; } /** * Form sumbit handler for the module install form. * * @see module_install_form_alter() */ function module_install_update_manager_install_form_submit($form, &$form_state) { module_load_include('inc', 'module_install', 'module_install.api'); module_install_set_destination_choice($form_state['values']['destination']); update_manager_install_form_submit($form, $form_state); } /** * Implements hook_updater_info_alter(). */ function module_install_updater_info_alter(&$updaters) { $updaters['module']['class'] = 'ModuleInstallUpdater'; }