Commit 53557e2f authored by Gábor Hojtsy's avatar Gábor Hojtsy

#183357 by Freso: hide administration pages links on module help pages if...

#183357 by Freso: hide administration pages links on module help pages if there are no admin links for the module
parent 44d22fc8
......@@ -50,9 +50,14 @@ function help_page($name) {
$output .= $temp;
}
// Only print list of administration pages if the module in question has
// any such pages associated to it.
$admin_tasks = system_get_module_admin_tasks($name);
ksort($admin_tasks);
$output .= theme('item_list', $admin_tasks, t('@module administration pages', array('@module' => $module['name'])));
if (!empty($admin_tasks)) {
ksort($admin_tasks);
$output .= theme('item_list', $admin_tasks, t('@module administration pages', array('@module' => $module['name'])));
}
}
return $output;
}
......
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