function advanced_forum_forum_menu_alter in Advanced Forum 6.2
Same name and namespace in other branches
- 7.2 plugins/tasks/forum.inc \advanced_forum_forum_menu_alter()
Callback defined by advanced_forum_forum_page_manager_tasks().
Alter the user view input so that user view comes to us rather than the normal user view process.
1 string reference to 'advanced_forum_forum_menu_alter'
- advanced_forum_forum_page_manager_tasks in plugins/
tasks/ forum.inc - Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.
File
- plugins/
tasks/ forum.inc, line 49
Code
function advanced_forum_forum_menu_alter(&$items, $task) {
if (variable_get('advanced_forum_forum_disabled', TRUE)) {
return;
}
$items['forum']['page callback'] = 'advanced_forum_forum_page';
$items['forum']['file path'] = $task['path'];
$items['forum']['file'] = $task['file'];
}