function _fieldgroup_groups_label in Content Construction Kit (CCK) 5
Same name and namespace in other branches
- 6.3 modules/fieldgroup/fieldgroup.module \_fieldgroup_groups_label()
- 6 modules/fieldgroup/fieldgroup.module \_fieldgroup_groups_label()
- 6.2 modules/fieldgroup/fieldgroup.module \_fieldgroup_groups_label()
2 calls to _fieldgroup_groups_label()
- content_admin_field_overview_form in ./
content_admin.inc - Menu callback; presents a listing of fields for a content type.
- fieldgroup_form_alter in ./
fieldgroup.module
File
- ./
fieldgroup.module, line 272 - Create field groups for CCK fields.
Code
function _fieldgroup_groups_label($content_type) {
$groups = fieldgroup_groups($content_type);
$labels[0] = t('No group');
foreach ($groups as $group_name => $group) {
$labels[$group_name] = t($group['label']);
}
return $labels;
}