function crumbs_crumbs_plugins in Crumbs, the Breadcrumbs suite 7.2
Same name and namespace in other branches
- 6.2 plugins/crumbs.crumbs.inc \crumbs_crumbs_plugins()
- 6 plugins/crumbs.crumbs.inc \crumbs_crumbs_plugins()
- 7 plugins/crumbs.crumbs.inc \crumbs_crumbs_plugins()
Implements hook_crumbs_plugins().
Parameters
crumbs_InjectedAPI_hookCrumbsPlugins $api:
File
- plugins/
crumbs.crumbs.inc, line 9
Code
function crumbs_crumbs_plugins($api) {
if (module_exists('node')) {
$api
->entityRoute('node', 'node/%', 'type', 'Node type');
}
if (module_exists('user')) {
$api
->entityRoute('user', 'user/%', NULL, 'User role');
}
if (module_exists('taxonomy')) {
$api
->entityRoute('taxonomy_term', 'taxonomy/term/%', 'vocabulary_machine_name', 'Vocabulary');
}
$api
->monoPlugin('home_title');
$suffix = module_exists('token') ? 'TokenEnabled' : 'TokenDisabled';
$api
->entityParentPlugin('entityParent', $suffix);
}