function menutrails_comment in Menu TrailsMenu Trails 6
Same name and namespace in other branches
- 5 menutrails.module \menutrails_comment()
This implements the same functionality as the nodeapi, but for comment urls.
File
- ./
menutrails.module, line 174 - Menutrails allows the assignment of "trails" which will keep menu items active for individual node views.
Code
function menutrails_comment($comment, $op) {
if ($op == 'form' && arg(0) == 'comment') {
$node = node_load($comment['nid']['#value']);
$item = menutrails_node_location($node);
if ($item) {
menu_set_item(NULL, $item);
}
}
}