function context_reaction_menu::get_active_paths in Context 6
Same name and namespace in other branches
- 6.3 plugins/context_reaction_menu.inc \context_reaction_menu::get_active_paths()
- 7.3 plugins/context_reaction_menu.inc \context_reaction_menu::get_active_paths()
3 calls to context_reaction_menu::get_active_paths()
- context_reaction_breadcrumb::execute in plugins/
context_reaction_breadcrumb.inc - Override of execute().
- context_reaction_menu::menu_navigation_links in plugins/
context_reaction_menu.inc - Wrapper around menu_navigation_links() that gives themers the option of building navigation links based on an active context trail.
- context_reaction_menu::menu_set_active in plugins/
context_reaction_menu.inc - Iterates through a provided links array for use with theme_links() (e.g. from menu_primary_links()) and provides an active class for any items that have a path that matches an active context.
File
- plugins/
context_reaction_menu.inc, line 66
Class
- context_reaction_menu
- Expose menu items as context reactions.
Code
function get_active_paths() {
$active_paths = array();
foreach ($this
->get_contexts() as $context) {
if (isset($context->reactions[$this->plugin])) {
$active_paths[] = $context->reactions[$this->plugin];
}
}
return $active_paths;
}