From 53748ab5e24de5e33e9cf115e91a5845daa2ecbd Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 26 Dec 2009 16:50:09 +0000 Subject: - Patch #664544 by yched: clean-up entity build/view modes. --- modules/taxonomy/taxonomy.module | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'modules/taxonomy/taxonomy.module') 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) { @@ -178,21 +184,6 @@ function taxonomy_select_nodes($tid, $pager = TRUE, $limit = FALSE, $order = arr return $query->execute()->fetchCol(); } -/** - * 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(). */ -- cgit v1.2.3