function install_settings_form_submit

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 includes/install.core.inc
Form constructor for a form to configure and rewrite settings.php.

File

includes/install.core.inc, line 1011

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.