You are here

function navigation404_form_system_site_information_settings_alter in 404 Navigation 7

Same name and namespace in other branches
  1. 8 navigation404.module \navigation404_form_system_site_information_settings_alter()

Implements hook_form_alter().

File

./navigation404.module, line 28

Code

function navigation404_form_system_site_information_settings_alter(&$form, $form_state) {

  // Since we don't care what site_404 is set to, let the user set it if they want.
  if ($form['error_page']['site_404']['#default_value'] == NAVIGATION404_PAGE) {
    $form['error_page']['site_404']['#default_value'] = '';
  }

  // Insert our submit handler first.
  array_unshift($form['#submit'], 'navigation404_site_404_submit');
}