function og_CrumbsMultiPlugin_groups_overview::describe in Crumbs, the Breadcrumbs suite 7
Same name in this branch
- 7 plugins/crumbs.og.inc \og_CrumbsMultiPlugin_groups_overview::describe()
- 7 plugins/crumbs.og.2.inc \og_CrumbsMultiPlugin_groups_overview::describe()
Same name and namespace in other branches
- 7.2 plugins/crumbs.og.inc \og_CrumbsMultiPlugin_groups_overview::describe()
- 7.2 plugins/crumbs.og.2.inc \og_CrumbsMultiPlugin_groups_overview::describe()
Tells Crumbs about available rules.
Parameters
crumbs_InjectedAPI_describeMultiPlugin $api: API object with methods that allow describing the plugin.
Overrides crumbs_MultiPlugin::describe
File
- plugins/
crumbs.og.2.inc, line 128
Class
- og_CrumbsMultiPlugin_groups_overview
- Make $groups_overview_path the parent path for group nodes. The priorities can be configured per group node type.
Code
function describe($api) {
if (is_array($this->groupsOverviewPaths)) {
foreach ($this->groupsOverviewPaths as $type => $parent_path) {
$api
->addRule($type->type);
}
}
else {
$types = node_type_get_types();
foreach ($types as $type) {
if (og_is_group_type('node', $type->type)) {
$api
->addRule($type->type);
}
}
}
}