You are here

function _crumbs_themekey_path2trailpaths in Crumbs, the Breadcrumbs suite 7

Same name and namespace in other branches
  1. 7.2 includes/crumbs.callbacks.inc \_crumbs_themekey_path2trailpaths()

Callback for themekey integration.

1 string reference to '_crumbs_themekey_path2trailpaths'
crumbs_themekey_properties in ./crumbs.module
Implements hook_themekey_properties().

File

./crumbs.module, line 161
Provides an API for building breadcrumbs.

Code

function _crumbs_themekey_path2trailpaths($path) {
  $trail = crumbs_get_trail($path);
  $paths = array();
  foreach ($trail as $k => $item) {
    $paths[$item['alias']] = TRUE;
    $paths[$item['route']] = TRUE;
    $paths[$k] = TRUE;
  }
  return array_keys($paths);
}