You are here

function term_authoring_info_field_extra_fields in Taxonomy Term Authoring Information 7

Implements hook_field_extra_fields().

File

./term_authoring_info.module, line 253
Provide authoring information for taxonomy term.

Code

function term_authoring_info_field_extra_fields() {
  $return = array();
  $info = entity_get_info('taxonomy_term');
  foreach (array_keys($info['bundles']) as $bundle) {
    if (variable_get('term_authoring_info_vocab_' . $bundle . '_showfield', 0)) {
      $return['taxonomy_term'][$bundle]['display']['authoring_information'] = array(
        'label' => t('Authoring Information'),
        'description' => t('Term created'),
        'weight' => 0,
      );
    }
  }
  return $return;
}