You are here

function fieldgroup_content_fieldapi in Content Construction Kit (CCK) 6.3

Same name and namespace in other branches
  1. 6 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 93
Create field groups for CCK fields.

Code

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