You are here

function _path_breadcrumbs_pb_join_property_defaults in Path Breadcrumbs 7.3

Return default 'pb-join' struct.

3 calls to _path_breadcrumbs_pb_join_property_defaults()
path_breadcrumbs_entity_property_info_alter in ./path_breadcrumbs.info.inc
Implements hook_entity_property_info_alter().
_path_breadcrumbs_menu_link_property_defaults in ./path_breadcrumbs.info.inc
Return default 'menu-link' struct.
_path_breadcrumbs_menu_trail_property_defaults in ./path_breadcrumbs.info.inc
Return default 'path-menu-trail' structure.

File

./path_breadcrumbs.info.inc, line 73
Contains Entity API hooks and callbacks.

Code

function _path_breadcrumbs_pb_join_property_defaults() {
  return array(
    'label' => t("Path Breadcrumbs join"),
    'description' => t("Path Breadcrumbs join"),
    'getter callback' => 'path_breadcrumbs_entity_get_properties',
    'type' => 'struct',
    'property info' => array(
      'name' => array(
        'label' => t("Join parents names"),
        'description' => t("Join parents names"),
        'getter callback' => 'path_breadcrumbs_entity_get_properties',
        'type' => 'text',
      ),
      'url' => array(
        'label' => t("Join parents URLs"),
        'description' => t("Join parents URLs"),
        'getter callback' => 'path_breadcrumbs_entity_get_properties',
        'type' => 'text',
      ),
      'none' => array(
        'label' => t("<none> equivalent for pb-join tokens"),
        'description' => t("<none> equivalent for pb-join tokens"),
        'getter callback' => 'path_breadcrumbs_entity_get_properties',
        'type' => 'text',
        'sanitized' => TRUE,
      ),
    ),
    'computed' => TRUE,
  );
}