function fieldgroup_update_6002 in Content Construction Kit (CCK) 6.3
Same name and namespace in other branches
- 6.2 modules/fieldgroup/fieldgroup.install \fieldgroup_update_6002()
Same as 6000 : Move fieldgroup tables to the content_* namespace. This was missing in D6 releases earlier than RC5. Ensure we don't run this twice.
File
- modules/
fieldgroup/ fieldgroup.install, line 230 - Implementation of hook_install().
Code
function fieldgroup_update_6002() {
if ($abort = content_check_update('fieldgroup')) {
return $abort;
}
$ret = array();
if (db_table_exists('node_group')) {
db_rename_table($ret, 'node_group', 'content_group');
db_rename_table($ret, 'node_group_fields', 'content_group_fields');
variable_set('fieldgroup_schema_version', 6000);
}
return $ret;
}