You are here

function _fieldgroup_groups_label in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 5 fieldgroup.module \_fieldgroup_groups_label()
  2. 6.3 modules/fieldgroup/fieldgroup.module \_fieldgroup_groups_label()
  3. 6.2 modules/fieldgroup/fieldgroup.module \_fieldgroup_groups_label()
3 calls to _fieldgroup_groups_label()
content_admin_display_overview_form in includes/content.admin.inc
Menu callback; presents a listing of fields display settings for a content type.
content_admin_field_overview_form in includes/content.admin.inc
Menu callback; listing of fields for a content type.
fieldgroup_form_alter in modules/fieldgroup/fieldgroup.module

File

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

Code

function _fieldgroup_groups_label($content_type) {
  $groups = fieldgroup_groups($content_type);
  $labels[''] = '<' . t('none') . '>';
  foreach ($groups as $group_name => $group) {
    $labels[$group_name] = t($group['label']);
  }
  return $labels;
}