You are here

function taxonomy_revision_field_extra_fields in Taxonomy revision 7

Implements hook_field_extra_fields().

Add support for the 'Taxonomy Revision settings' to be re-ordered by the user on the 'Manage Fields' tab of vocabularies.

File

./taxonomy_revision.module, line 498
This is the main module file for the Taxonomy revision module.

Code

function taxonomy_revision_field_extra_fields() {
  $info = array();
  $vocabularies = taxonomy_get_vocabularies();
  foreach ($vocabularies as $vocabulary) {
    if (!isset($info['taxonomy_term'][$vocabulary->machine_name]['form']['revision_information'])) {
      $info['taxonomy_term'][$vocabulary->machine_name]['form']['revision_information'] = array(
        'label' => t('Taxonomy Revision settings'),
        'description' => t('Taxonomy Revision module form elements'),
        'weight' => 30,
      );
    }
  }
  return $info;
}