function fieldgroup_update_6007 in Content Construction Kit (CCK) 6.2
Same name and namespace in other branches
- 6.3 modules/fieldgroup/fieldgroup.install \fieldgroup_update_6007()
Remove orphaned fields (see http://drupal.org/node/339537).
File
- modules/
fieldgroup/ fieldgroup.install, line 311 - Implementation of hook_install().
Code
function fieldgroup_update_6007() {
$ret = array();
$ret[] = update_sql("DELETE FROM {content_group_fields} WHERE (field_name, type_name) NOT IN (SELECT field_name, type_name FROM {content_node_field_instance})");
return $ret;
}