function oa_section_context_entity_property_info in Open Atrium Core 7.2
Implements hook_entity_property_info().
Add the current-section to the system token (i.e. like current-user).
File
- modules/
oa_section_context/ oa_section_context.module, line 85 - Provides hook implementations and functionality for oa_section_context.
Code
function oa_section_context_entity_property_info() {
$info = array();
// Add meta-data about the basic node properties.
$properties =& $info['site']['properties'];
$properties['oa_section_context'] = array(
'label' => t('Current OA section'),
'description' => t('The current Open Atrium Section from context, if exists.'),
'getter callback' => 'oa_section_context_get_properties',
'type' => 'node',
);
return $info;
}