function hook_path_breadcrumbs_settings_info in Path Breadcrumbs 7.3
Same name and namespace in other branches
- 7.2 path_breadcrumbs.api.php \hook_path_breadcrumbs_settings_info()
Expose Path Breadcrumbs settings.
This hook is called by CTools. For this hook to work, you need hook_ctools_plugin_api(). The values of this hook can be overridden and reverted through the UI.
Return value
array Array with importable objects.
File
- ./
path_breadcrumbs.api.php, line 18 - Hooks provided by Path Breadcrumbs module.
Code
function hook_path_breadcrumbs_settings_info() {
$path_breadcrumbs = array();
$path_breadcrumb = new stdClass();
$path_breadcrumb->api_version = 1;
$path_breadcrumb->machine_name = 'example_breadcrumb';
$path_breadcrumb->name = 'Example breadcrumb';
$path_breadcrumb->path = 'node/%node';
$path_breadcrumb->data = array(
'titles' => array(
0 => 'Content',
1 => '%node:title',
2 => '%node:comment-count',
),
'paths' => array(
0 => 'node',
1 => 'node/%node:nid',
2 => '<none>',
),
'home' => 1,
'translatable' => 0,
'arguments' => array(
'node' => array(
'position' => 1,
'argument' => 'entity_id:node',
'settings' => array(
'identifier' => 'Node: ID',
),
),
),
'access' => array(),
);
$path_breadcrumb->weight = 0;
$path_breadcrumbs['example_breadcrumb'] = $path_breadcrumb;
return $path_breadcrumbs;
}