You are here

function xmlsitemap_taxonomy_form_taxonomy_form_vocabulary_alter in XML sitemap 7.2

Same name and namespace in other branches
  1. 6.2 xmlsitemap_taxonomy/xmlsitemap_taxonomy.module \xmlsitemap_taxonomy_form_taxonomy_form_vocabulary_alter()
  2. 6 xmlsitemap_taxonomy/xmlsitemap_taxonomy.module \xmlsitemap_taxonomy_form_taxonomy_form_vocabulary_alter()

Implements hook_form_FORM_ID_alter().

See also

taxonomy_form_vocabulary()

xmlsitemap_add_link_bundle_settings()

File

xmlsitemap_taxonomy/xmlsitemap_taxonomy.module, line 68
Main file for XML sitemap taxonomy.

Code

function xmlsitemap_taxonomy_form_taxonomy_form_vocabulary_alter(&$form, $form_state) {
  if (in_array('taxonomy_vocabulary_confirm_delete_submit', $form['#submit'])) {

    // If this is the delete form, do not add our form elements.
    return;
  }
  module_load_include('inc', 'xmlsitemap', 'xmlsitemap.admin');
  xmlsitemap_add_link_bundle_settings($form, $form_state, 'taxonomy_term', $form['#vocabulary']->machine_name);
}