diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-26 16:50:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-26 16:50:09 +0000 |
commit | 53748ab5e24de5e33e9cf115e91a5845daa2ecbd (patch) | |
tree | 6a2c0c9d2f933ef6d112db66a4655ce0f557126a /modules/taxonomy/taxonomy.module | |
parent | a838c8be49ed46f9ffb911113c55f9944ae7f952 (diff) | |
download | brdo-53748ab5e24de5e33e9cf115e91a5845daa2ecbd.tar.gz brdo-53748ab5e24de5e33e9cf115e91a5845daa2ecbd.tar.bz2 |
- Patch #664544 by yched: clean-up entity build/view modes.
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-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() { |