taxonomy_field_extra_fields()Implements hook_field_extra_fields().
modules/taxonomy/taxonomy.module, line 143
<?php
function taxonomy_field_extra_fields() {
$return = array();
foreach (taxonomy_vocabulary_get_names() as $machine_name => $vocabulary) {
$return['taxonomy_term'][$machine_name] = 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,
)
);
}
return $return;
}
?>