function fieldgroup_get_group in Content Construction Kit (CCK) 5
Same name and namespace in other branches
- 6.3 modules/fieldgroup/fieldgroup.module \fieldgroup_get_group()
- 6 modules/fieldgroup/fieldgroup.module \fieldgroup_get_group()
- 6.2 modules/fieldgroup/fieldgroup.module \fieldgroup_get_group()
1 call to fieldgroup_get_group()
- content_admin_field_overview_form in ./
content_admin.inc - Menu callback; presents a listing of fields for a content type.
File
- ./
fieldgroup.module, line 432 - 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;
}