function entity_background_add_field_group in Entity background 7
Define field group object.
Parameters
string $group_name: A name of the group to be added.
string $entity_type: An entity type to which should be the group added.
string $bundle: An bundle to which should be the group added.
string $mode: A mode of the group.
Return value
array An array of group definition.
1 call to entity_background_add_field_group()
- entity_background_create_bd_field_group in ./
entity_background.module - Helper function used to create a field group on the bd field collection.
File
- ./
entity_background.module, line 337 - Module file entity background.
Code
function entity_background_add_field_group($group_name, $entity_type, $bundle, $mode = 'form') {
$identifier = $group_name . '|' . $entity_type . '|' . $bundle . '|' . $mode;
$field_group = array(
'identifier' => $identifier,
'group_name' => $group_name,
'entity_type' => $entity_type,
'bundle' => $bundle,
'mode' => $mode,
);
return $field_group;
}