You are here

function xmlsitemap_taxonomy_form_taxonomy_form_term_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_term_alter()
  2. 6 xmlsitemap_taxonomy/xmlsitemap_taxonomy.module \xmlsitemap_taxonomy_form_taxonomy_form_term_alter()

Implements hook_form_FORM_ID_alter().

File

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

Code

function xmlsitemap_taxonomy_form_taxonomy_form_term_alter(&$form, $form_state) {
  if ($form['name']['#type'] == 'value') {

    // If this is the delete form, do not add our form elements.
    return;
  }

  // Add the link options.
  module_load_include('inc', 'xmlsitemap', 'xmlsitemap.admin');
  xmlsitemap_add_form_link_options($form, 'taxonomy_term', $form['#term']['vocabulary_machine_name'], $form['tid']['#value']);
}