function field_group_load_field_group in Field Group 8
Same name and namespace in other branches
- 8.3 field_group.module \field_group_load_field_group()
- 7.2 field_group.module \field_group_load_field_group()
- 7 field_group.module \field_group_load_field_group()
Loads a group definition.
Parameters
$group_name: The name of the group.
$entity_type: The name of the entity.
$bundle: The name of the bundle.
$context: The context of the view mode (form or view)
$mode: The view mode to load.
7 calls to field_group_load_field_group()
- FieldGroupConverter::convert in src/
Routing/ FieldGroupConverter.php - Converts path variables to their corresponding objects.
- FieldGroupDeleteForm::buildForm in src/
Form/ FieldGroupDeleteForm.php - Form constructor.
- field_group_exists in ./
field_group.module - Checks if a field_group exists in required context.
- field_group_field_ui_display_form_alter in includes/
field_ui.inc - Function to alter the display overview screens.
- ManageDisplayTest::testCreateGroup in tests/
src/ Functional/ ManageDisplayTest.php - Test the creation a group on the article content type.
File
- ./
field_group.module, line 711 - Allows administrators to attach custom fields to fieldable types.
Code
function field_group_load_field_group($group_name, $entity_type, $bundle, $context, $mode) {
$groups = field_group_info_groups($entity_type, $bundle, $context, $mode);
if (isset($groups[$group_name])) {
return $groups[$group_name];
}
}