class _taxonomy_CrumbsPlugin__term_node in Crumbs, the Breadcrumbs suite 6.2
Same name and namespace in other branches
- 6 plugins/crumbs.taxonomy.inc \_taxonomy_CrumbsPlugin__term_node
Hierarchy
- class \_taxonomy_CrumbsPlugin
Expanded class hierarchy of _taxonomy_CrumbsPlugin__term_node
File
- plugins/
crumbs.taxonomy.inc, line 58
View source
class _taxonomy_CrumbsPlugin__term_node extends _taxonomy_CrumbsPlugin {
function disabledByDefault() {
return array(
'*',
);
}
/**
* Nodes get their terms as breadcrumb parents.
* The method name matches the router path "node/%".
*/
function findParent__node_x($path, $item) {
$node = $item['map'][0];
if (is_array($node->taxonomy)) {
$result = array();
foreach ($node->taxonomy as $tid => $term) {
if (!isset($result['voc_' . $term->vid])) {
$result['voc_' . $term->vid] = "taxonomy/term/{$tid}";
}
}
return $result;
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
_taxonomy_CrumbsPlugin:: |
function | |||
_taxonomy_CrumbsPlugin__term_node:: |
function | |||
_taxonomy_CrumbsPlugin__term_node:: |
function | Nodes get their terms as breadcrumb parents. The method name matches the router path "node/%". |