'; $form['module_filter']['#suffix'] = ''; $output = drupal_render($form['module_filter']); $form['#theme'] = 'system_modules'; $output .= drupal_render($form['modules']); $output .= drupal_render($form['actions']); } return $output; } function theme_module_filter_modules_table($variables) { $form = $variables['form']; // Individual table headers. $rows = array(); // Iterate through all the modules, which are // children of this fieldset. foreach (element_children($form) as $key) { // Stick it into $module for easier accessing. $module = $form[$key]; $row = array(); unset($module['enable']['#title']); $row[] = array('class' => array('checkbox'), 'data' => drupal_render($module['enable'])); $label = '' . drupal_render($module['name']) . ''; $row[] = drupal_render($module['version']); // Add the description, along with any modules it requires. $description = drupal_render($module['description']); if ($module['#requires']) { $description .= '
' . t('Requires: !module-list', array('!module-list' => implode(', ', $module['#requires']))) . '
'; } if ($module['#required_by']) { $description .= '
' . t('Required by: !module-list', array('!module-list' => implode(', ', $module['#required_by']))) . '
'; } $row[] = array('data' => $description, 'class' => array('description')); // Display links (such as help or permissions) in their own columns. foreach (array('help', 'permissions', 'configure') as $key) { $row[] = array('data' => drupal_render($module['links'][$key]), 'class' => array($key)); } $id = module_filter_get_id($module['#package']); $rows[] = array( 'data' => $row, 'class' => array($id .'-tab-content') ); } return theme('table', array('header' => $form['#header'], 'rows' => $rows, 'attributes' => array('class' => array('package')))); } /** * Theme callback for the modules tabbed form. */ function theme_module_filter_system_modules_tabs($variables) { $form = $variables['form']; // Display packages. $tabs = array('all' => '
  • ' . t('All') . '
  • '); foreach ($form['#packages'] as $package) { $id = module_filter_get_id($package); $tabs[$id] = '
  • ' . $package . '
  • '; } $output = '
    '; $output .= '
    '; $output .= '
      '. implode($tabs) . '
    '; $output .= '
    '; $output .= '
    ' . drupal_render($form['module_filter']); $output .= '
    ' . drupal_render($form['module_filter_submit']) . '
    ' . drupal_render($form['modules']) . '
    ' . drupal_render($form['actions']) . '
    '; $output .= '
    '; $output .= '
    '; $output .= drupal_render_children($form); return $output; }