You are here

function sitemap_form_alter in Sitemap 8

Implements hook_form_alter().

File

./sitemap.module, line 235
Provides sitemap functionality.

Code

function sitemap_form_alter(&$form, FormStateInterface $form_state, $form_id) {

  // Apply the same form_alter both the add and edit forms.
  if ($form_id === 'menu_add_form' || $form_id === 'menu_edit_form') {
    sitemap_alter_menu_forms($form, $form_state, $form_id);
  }
}