diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-10-15 14:15:31 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-10-15 14:15:31 +0000 |
commit | 53557e2f7b4713bb010fedf349372540f4207b3d (patch) | |
tree | f410c9a986041ec0e9d6e5a010ebc98e9fbbc8d9 /modules/help/help.admin.inc | |
parent | 44d22fc8632ab51aa750e5307b1e3a506c8226ac (diff) | |
download | brdo-53557e2f7b4713bb010fedf349372540f4207b3d.tar.gz brdo-53557e2f7b4713bb010fedf349372540f4207b3d.tar.bz2 |
#183357 by Freso: hide administration pages links on module help pages if there are no admin links for the module
Diffstat (limited to 'modules/help/help.admin.inc')
-rw-r--r-- | modules/help/help.admin.inc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/help/help.admin.inc b/modules/help/help.admin.inc index a4a8d4bcd..8e2e6b92d 100644 --- a/modules/help/help.admin.inc +++ b/modules/help/help.admin.inc @@ -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; } |