function entity_metadata_system_get_page_properties in Entity API 7
Callback for getting properties for the current page request.
See also
entity_metadata_system_entity_info_alter()
1 string reference to 'entity_metadata_system_get_page_properties'
- entity_metadata_system_entity_property_info in modules/
system.info.inc - Implements hook_entity_property_info() on top of system module.
File
- modules/
callbacks.inc, line 267 - Provides various callbacks for the whole core module integration.
Code
function entity_metadata_system_get_page_properties($data, array $options, $name) {
switch ($name) {
case 'url':
return $GLOBALS['base_root'] . request_uri();
}
}