summaryrefslogtreecommitdiffstats
path: root/context_prefix
diff options
context:
space:
mode:
authoryoung hahn2008-04-28 14:47:12 (GMT)
committeryoung hahn2008-04-28 14:47:12 (GMT)
commit58db07500441f1155e0a7c052a0c4e987ec41f1c (patch)
tree347cb34e3477860abd5fb2e7308d75af332bd247 /context_prefix
parent105560fe0a742cfc4e8bec3190940cb78aaa5a1d (diff)
Small change that enables active classes from links generated by the menu system
Diffstat (limited to 'context_prefix')
-rw-r--r--context_prefix/context_prefix.module5
1 files changed, 5 insertions, 0 deletions
diff --git a/context_prefix/context_prefix.module b/context_prefix/context_prefix.module
index f819133..66bffc4 100644
--- a/context_prefix/context_prefix.module
+++ b/context_prefix/context_prefix.module
@@ -286,6 +286,11 @@ function theme_context_links($links, $attributes = array('class' => 'links')) {
$class = $key;
}
+ // Add active class for active menu items
+ if (stristr($key, 'active')) {
+ $class .= " active";
+ }
+
// Add first and last classes to the list of links to help out themers.
$extra_class = '';
if ($i == 1) {