You are here

function _path_breadcrumbs_menu_link_property_defaults in Path Breadcrumbs 7.3

Return default 'menu-link' struct.

1 call to _path_breadcrumbs_menu_link_property_defaults()
path_breadcrumbs_entity_property_info_alter in ./path_breadcrumbs.info.inc
Implements hook_entity_property_info_alter().

File

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

Code

function _path_breadcrumbs_menu_link_property_defaults() {
  return array(
    'label' => t("Menu link"),
    'description' => t("Menu link"),
    'getter callback' => 'path_breadcrumbs_entity_get_properties',
    'type' => 'struct',
    'property info' => array(
      'title' => array(
        'label' => t("Title"),
        'description' => t("The title of the menu link."),
        'type' => 'text',
      ),
      'mlid' => array(
        'label' => t("Link ID"),
        'description' => t("The unique ID of the menu link."),
        'type' => 'text',
      ),
      'parents' => array(
        'label' => t("Join parents names"),
        'description' => t("Join parents names"),
        'type' => 'text',
      ),
      'url' => array(
        'label' => t("Join parents URLs"),
        'description' => t("Join parents URLs"),
        'type' => 'text',
      ),
      'pb_join' => _path_breadcrumbs_pb_join_property_defaults(),
    ),
    'computed' => TRUE,
  );
}