function fieldgroup_delete in Content Construction Kit (CCK) 6.3
Same name and namespace in other branches
- 6 modules/fieldgroup/fieldgroup.module \fieldgroup_delete()
- 6.2 modules/fieldgroup/fieldgroup.module \fieldgroup_delete()
1 call to fieldgroup_delete()
- fieldgroup_remove_group_submit in modules/
fieldgroup/ fieldgroup.module
File
- modules/
fieldgroup/ fieldgroup.module, line 1070 - Create field groups for CCK fields.
Code
function fieldgroup_delete($content_type, $group_name) {
db_query("DELETE FROM {" . fieldgroup_tablename() . "} WHERE type_name = '%s' AND group_name = '%s'", $content_type, $group_name);
db_query("DELETE FROM {" . fieldgroup_fields_tablename() . "} WHERE type_name = '%s' AND group_name = '%s'", $content_type, $group_name);
cache_clear_all('fieldgroup_data:', content_cache_tablename(), TRUE);
}