You are here

function xmlsitemap_taxonomy_field_extra_fields in XML sitemap 7.2

Implements hook_field_extra_fields().

File

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

Code

function xmlsitemap_taxonomy_field_extra_fields() {
  $extras = array();
  foreach (taxonomy_vocabulary_get_names() as $machine_name => $vocabulary) {
    $extras['taxonomy_term'][$machine_name]['form']['xmlsitemap'] = array(
      'label' => t('XML sitemap'),
      'description' => t('XML sitemap module element'),
      'weight' => 30,
    );
  }
  return $extras;
}