function install_settings_form_submit
install_settings_form_submit($form, &$form_state)
Form submission handler for install_settings_form().
See also
install_settings_form_validate()
File
- includes/install.core.inc, line 1011
- API functions for installing Drupal.
Code
function install_settings_form_submit($form, &$form_state) { global $install_state; // Update global settings array and save. $settings['databases'] = array( 'value' => array('default' => array('default' => $form_state['storage']['database'])), 'required' => TRUE, ); $settings['drupal_hash_salt'] = array( 'value' => drupal_random_key(), 'required' => TRUE, ); drupal_rewrite_settings($settings); // Indicate that the settings file has been verified, and check the database // for the last completed task, now that we have a valid connection. This // last step is important since we want to trigger an error if the new // database already has Drupal installed. $install_state['settings_verified'] = TRUE; $install_state['completed_task'] = install_verify_completed_task(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!install.core.inc/function/install_settings_form_submit/7.x