From 9502260ecf33a4b345794eea2d0b6e6dff5dbd74 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 4 Sep 2010 15:40:52 +0000 Subject: - Patch #902264 by Damien Tournoud: move hook_field_schema() to .install files so we can get the upgrade path to work. --- modules/taxonomy/taxonomy.install | 18 ++++++++++++++++++ modules/taxonomy/taxonomy.module | 18 ------------------ 2 files changed, 18 insertions(+), 18 deletions(-) (limited to 'modules/taxonomy') diff --git a/modules/taxonomy/taxonomy.install b/modules/taxonomy/taxonomy.install index cc2512206..86171b77d 100644 --- a/modules/taxonomy/taxonomy.install +++ b/modules/taxonomy/taxonomy.install @@ -221,6 +221,24 @@ function taxonomy_schema() { return $schema; } +/** + * Implements hook_field_schema(). + */ +function taxonomy_field_schema($field) { + return array( + 'columns' => array( + 'tid' => array( + 'type' => 'int', + 'unsigned' => TRUE, + 'not null' => FALSE, + ), + ), + 'indexes' => array( + 'tid' => array('tid'), + ), + ); +} + /** * Implements hook_update_dependencies(). */ diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index cb1f25592..45ae7c091 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -1117,24 +1117,6 @@ function taxonomy_options_list($field) { return $function($field); } -/** - * Implements hook_field_schema(). - */ -function taxonomy_field_schema($field) { - return array( - 'columns' => array( - 'tid' => array( - 'type' => 'int', - 'unsigned' => TRUE, - 'not null' => FALSE, - ), - ), - 'indexes' => array( - 'tid' => array('tid'), - ), - ); -} - /** * Implements hook_field_validate(). * -- cgit v1.2.3