? .project ? sites/default/files ? sites/default/private ? sites/default/settings.php Index: modules/system/system.admin.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.admin.inc,v retrieving revision 1.209 diff -u -p -r1.209 system.admin.inc --- modules/system/system.admin.inc 9 Oct 2009 01:00:05 -0000 1.209 +++ modules/system/system.admin.inc 10 Oct 2009 12:13:02 -0000 @@ -695,13 +695,22 @@ function system_modules($form, $form_sta } } } + $extra['links'] = array(); + $links = array(); // Generate link for module's help page, if there is one. if ($help_arg && $module->status && in_array($filename, module_implements('help'))) { if (module_invoke($filename, 'help', "admin/help#$filename", $help_arg)) { // Module has a help page. - $extra['help'] = theme('more_help_link', array('url' => url("admin/help/$filename"))); + $links['help'] = theme('more_help_link', array('url' => url("admin/help/$filename"))); } } + $admin_tasks = system_get_module_admin_tasks($module->name); + foreach ($admin_tasks as $key => $task) { + $links[$key] = $task; + } + if (count($links)) { + $extra['links'] = theme('item_list', array('items' => $links)); + } // Mark dependents disabled so the user cannot remove required modules. $dependents = array(); // If this module is required by other modules, list those, and then make it @@ -762,7 +771,7 @@ function _system_modules_build_row($info 'required_by' => array(), 'disabled' => FALSE, 'enabled' => FALSE, - 'help' => '', + 'extra' => array(), ); $form = array( '#tree' => TRUE, @@ -821,10 +830,10 @@ function _system_modules_build_row($info $form['description']['#markup'] .= theme('system_modules_incompatible', array('message' => $status_long)); } - // Show a "more help" link for modules that have them. - if ($extra['help']) { - $form['help'] = array( - '#markup' => $extra['help'], + // Show a set of useful links for modules that have them. + if (count($extra['links'])) { + $form['links'] = array( + '#markup' => $extra['links'], ); } return $form; @@ -1932,7 +1941,7 @@ function system_php() { function system_batch_page() { require_once DRUPAL_ROOT . '/includes/batch.inc'; $output = _batch_page(); - + // Use the same theme that the page that started the batch. $batch = &batch_get(); $GLOBALS['custom_theme'] = $batch['theme']; @@ -2197,8 +2206,10 @@ function theme_system_modules_fieldset($ $description = ''; // If we have help, it becomes the first part // of the description - with CSS, it is float: right'd. - if (isset($module['help'])) { - $description = '