You are here

function field_group_exists in Field Group 7.2

Same name and namespace in other branches
  1. 8.3 field_group.module \field_group_exists()
  2. 8 field_group.module \field_group_exists()
  3. 7 field_group.module \field_group_exists()

Checks if a field_group exists in required context.

Parameters

String $group_name: The name of the group.

String $entity_type: The name of the entity.

String $bundle: The bundle for the entity.

String $mode: The view mode context the group will be rendered.

1 call to field_group_exists()
field_group_field_overview_validate in ./field_group.field_ui.inc
Validate handler for the overview screens.

File

./field_group.module, line 1456
Fieldgroup module.

Code

function field_group_exists($group_name, $entity_type, $bundle, $mode) {
  $groups = field_group_read_groups();
  return !empty($groups[$entity_type][$bundle][$mode][$group_name]);
}