You are here

function _crumbs_themekey_path2trailpaths in Crumbs, the Breadcrumbs suite 7.2

Same name and namespace in other branches
  1. 7 crumbs.module \_crumbs_themekey_path2trailpaths()

Callback for themekey integration.

Parameters

string $path:

Return value

array

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

File

includes/crumbs.callbacks.inc, line 190

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);
}