diff options
Diffstat (limited to 'modules/taxonomy')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index f886366a6..5c63fc057 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -98,6 +98,12 @@ function taxonomy_entity_info() { 'bundle' => 'machine_name', ), 'bundles' => array(), + 'view modes' => array( + // @todo View mode for display as a field (when attached to nodes etc). + 'full' => array( + 'label' => t('Taxonomy term page'), + ), + ), ), ); foreach (taxonomy_vocabulary_get_names() as $machine_name => $vocabulary) { @@ -179,21 +185,6 @@ function taxonomy_select_nodes($tid, $pager = TRUE, $limit = FALSE, $order = arr } /** - * Implements hook_field_build_modes(). - * - * @TODO: build mode for display as a field (when attached to nodes etc.). - */ -function taxonomy_field_build_modes($obj_type) { - $modes = array(); - if ($obj_type == 'term') { - $modes = array( - 'full' => t('Taxonomy term page'), - ); - } - return $modes; -} - -/** * Implements hook_theme(). */ function taxonomy_theme() { |