function install_settings_form_submit
7.x install.core.inc | install_settings_form_submit($form, &$form_state) |
6.x install.php | install_settings_form_submit($form, &$form_state) |
Form submission handler for install_settings_form().
See also
install_settings_form_validate()
1 string reference to 'install_settings_form_submit'
- install_settings_form in drupal-7.x/
includes/ install.core.inc - Form constructor for a form to configure and rewrite settings.php.
File
- drupal-7.x/
includes/ install.core.inc, line 999 - 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();
}