You are here

function fieldgroup_get_group in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 5 fieldgroup.module \fieldgroup_get_group()
  2. 6.3 modules/fieldgroup/fieldgroup.module \fieldgroup_get_group()
  3. 6 modules/fieldgroup/fieldgroup.module \fieldgroup_get_group()
2 calls to fieldgroup_get_group()
content_copy_export in modules/content_copy/content_copy.module
Process the export, get field admin forms for all requested fields and save the form values as formatted text.
content_field in ./content.module
Implementation of hook_field(). Handles common field housekeeping.

File

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

Code

function fieldgroup_get_group($content_type, $field_name) {
  foreach (fieldgroup_groups($content_type) as $group_name => $group) {
    if (in_array($field_name, array_keys($group['fields']))) {
      return $group_name;
    }
  }
  return FALSE;
}