function path_breadcrumbs_entity_property_info_alter in Path Breadcrumbs 7.3
Implements hook_entity_property_info_alter().
File
- ./
path_breadcrumbs.info.inc, line 11 - Contains Entity API hooks and callbacks.
Code
function path_breadcrumbs_entity_property_info_alter(&$info) {
$taxonomy_properties =& $info['taxonomy_term']['properties'];
$node_properties =& $info['node']['properties'];
$site_properties =& $info['site']['properties'];
// Add tokens for automatic generation of taxonomy hierarchy.
$taxonomy_properties['pb_join'] = _path_breadcrumbs_pb_join_property_defaults();
$taxonomy_properties['pb_join']['description'] = 'All parent terms (for Path Breadcrumbs)';
// Add menu-link properties only for autocomplete in Path Breadcrumbs UI.
$node_properties['menu_link'] = _path_breadcrumbs_menu_link_property_defaults();
$site_properties['current_page']['property info']['menu_link'] = _path_breadcrumbs_menu_link_property_defaults();
// Add path-menu-trail property only for autocomplete.
$site_properties['current_page']['property info']['path_menu_trail'] = _path_breadcrumbs_menu_trail_property_defaults();
}