Commit 84b7defc authored by Steven Wittens's avatar Steven Wittens
Browse files

- Bugfix: admin/forum tabs should not appear on edit forum/container pages.

parent c1d9fffb
...@@ -422,6 +422,13 @@ function forum_menu($may_cache) { ...@@ -422,6 +422,13 @@ function forum_menu($may_cache) {
'callback' => 'forum_admin_configure', 'callback' => 'forum_admin_configure',
'access' => user_access('administer forums'), 'access' => user_access('administer forums'),
'type' => MENU_LOCAL_TASK); 'type' => MENU_LOCAL_TASK);
$items[] = array('path' => 'admin/forum/edit/container', 'title' => t('edit container'),
'access' => user_access('administer forums'),
'type' => MENU_CALLBACK);
$items[] = array('path' => 'admin/forum/edit/forum', 'title' => t('edit forum'),
'access' => user_access('administer forums'),
'type' => MENU_CALLBACK);
} }
return $items; return $items;
......
...@@ -422,6 +422,13 @@ function forum_menu($may_cache) { ...@@ -422,6 +422,13 @@ function forum_menu($may_cache) {
'callback' => 'forum_admin_configure', 'callback' => 'forum_admin_configure',
'access' => user_access('administer forums'), 'access' => user_access('administer forums'),
'type' => MENU_LOCAL_TASK); 'type' => MENU_LOCAL_TASK);
$items[] = array('path' => 'admin/forum/edit/container', 'title' => t('edit container'),
'access' => user_access('administer forums'),
'type' => MENU_CALLBACK);
$items[] = array('path' => 'admin/forum/edit/forum', 'title' => t('edit forum'),
'access' => user_access('administer forums'),
'type' => MENU_CALLBACK);
} }
return $items; return $items;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment