function og_context_entity_property_info in Organic groups 7
Same name and namespace in other branches
- 7.2 og_context/og_context.module \og_context_entity_property_info()
Implements hook_entity_property_info().
Add the current-group to the system token (i.e. like current-user).
File
- og_context/
og_context.module, line 42 - Get a group from a viewed page.
Code
function og_context_entity_property_info() {
$info = array();
$properties =& $info['site']['properties'];
$properties['current_group'] = array(
'label' => t("Current group"),
'description' => t("The group from context, if exists."),
'getter callback' => 'og_context_get_properties',
'type' => 'group',
);
return $info;
}