function navigation404_form_system_site_information_settings_alter in 404 Navigation 8
Same name and namespace in other branches
- 7 navigation404.module \navigation404_form_system_site_information_settings_alter()
Implements hook_form_alter().
File
- ./
navigation404.module, line 13 - main module file.
Code
function navigation404_form_system_site_information_settings_alter(&$form, FormStateInterface $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');
}