You are here

function fieldgroup_content_fieldapi in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 6.3 modules/fieldgroup/fieldgroup.module \fieldgroup_content_fieldapi()
  2. 6.2 modules/fieldgroup/fieldgroup.module \fieldgroup_content_fieldapi()

Implementation of hook_fieldapi().

File

modules/fieldgroup/fieldgroup.module, line 81
Create field groups for CCK fields.

Code

function fieldgroup_content_fieldapi($op, $field) {
  switch ($op) {
    case 'delete':
      db_query("DELETE FROM {" . fieldgroup_fields_tablename() . " WHERE field_name = '%s'", $field['field_name']);
      break;
  }
  cache_clear_all('fieldgroup_data', content_cache_tablename());
}