function field_group_menu_load in Field Group 7
Same name and namespace in other branches
- 7.2 field_group.module \field_group_menu_load()
Menu Wildcard loader function to load group definitions.
Parameters
$group_name: The name of the group, as contained in the path.
$entity_type: The name of the entity.
$bundle_name: The name of the bundle, as contained in the path.
$bundle_pos: The position of $bundle_name in $map.
$map: The translated menu router path argument map.
File
- ./
field_group.module, line 109 - Fieldgroup module.
Code
function field_group_menu_load($group_name, $entity_type, $bundle_name, $bundle_pos, $map) {
$args = func_get_args();
$args_pop = array_pop($args);
$mode = array_pop($args_pop);
if ($bundle_pos > 0) {
$bundle = $map[$bundle_pos];
$bundle_name = field_extract_bundle($entity_type, $bundle);
}
$group = field_group_load_field_group($group_name, $entity_type, $bundle_name, $mode);
return empty($group) ? FALSE : $group;
}