You are here

function navigation404_site_404_submit in 404 Navigation 8

Same name and namespace in other branches
  1. 7 navigation404.module \navigation404_site_404_submit()

Submit callback for system_site_information_settings form.

1 string reference to 'navigation404_site_404_submit'
navigation404_form_system_site_information_settings_alter in ./navigation404.module
Implements hook_form_alter().

File

./navigation404.module, line 25
main module file.

Code

function navigation404_site_404_submit($form, FormStateInterface $form_state) {

  // Make sure site_404 is not empty.
  $site_404 = $form_state
    ->getValue('site_404');
  if (empty($site_404)) {
    $form_state
      ->setValue('site_404', NAVIGATION404_PAGE);
  }
}