function xmlsitemap_taxonomy_form_taxonomy_form_term_alter in XML sitemap 6.2
Same name and namespace in other branches
- 6 xmlsitemap_taxonomy/xmlsitemap_taxonomy.module \xmlsitemap_taxonomy_form_taxonomy_form_term_alter()
- 7.2 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 92
Code
function xmlsitemap_taxonomy_form_taxonomy_form_term_alter(&$form, $form_state) {
// Because the same form is used for deletion in confirm_form, we must check
// if the normal editing form elements are present.
if (!isset($form['identification'])) {
return;
}
// Add the link options.
module_load_include('inc', 'xmlsitemap', 'xmlsitemap.admin');
xmlsitemap_add_form_link_options($form, 'taxonomy_term', $form['vid']['#value'], $form['#term']['tid']);
}