taxonomy_field_extra_fields
function taxonomy_field_extra_fields
taxonomy_field_extra_fields()
Implements hook_field_extra_fields().
File
- modules/taxonomy/taxonomy.module, line 154
- Enables the organization of content into categories.
Code
function taxonomy_field_extra_fields() { $return = array(); $info = entity_get_info('taxonomy_term'); foreach (array_keys($info['bundles']) as $bundle) { $return['taxonomy_term'][$bundle] = array( 'form' => array( 'name' => array( 'label' => t('Name'), 'description' => t('Term name textfield'), 'weight' => -5, ), 'description' => array( 'label' => t('Description'), 'description' => t('Term description textarea'), 'weight' => 0, ), ), 'display' => array( 'description' => array( 'label' => t('Description'), 'description' => t('Term description'), 'weight' => 0, ), ), ); } return $return; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!taxonomy!taxonomy.module/function/taxonomy_field_extra_fields/7.x