function theme_system_modules_fieldset

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 system.admin.inc theme_system_modules_fieldset($variables)
cle7 system.admin.inc theme_system_modules_fieldset($variables)
elmsmedia7 system.admin.inc theme_system_modules_fieldset($variables)
icor7 system.admin.inc theme_system_modules_fieldset($variables)
meedjum_blog7 system.admin.inc theme_system_modules_fieldset($variables)
mooc7 system.admin.inc theme_system_modules_fieldset($variables)

Returns HTML for the modules form.

Parameters

$variables: An associative array containing:

  • form: A render element representing the form.

Related topics

2 string references to the theme hook from theme_system_modules_fieldset()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

system_modules in modules/system/system.admin.inc
Menu callback; provides module enable/disable interface.
system_theme in modules/system/system.module
Implements hook_theme().

File

modules/system/system.admin.inc, line 2606
Admin page callbacks for the system module.

Code

function theme_system_modules_fieldset($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 = '<label';
    if (isset($module['enable']['#id'])) {
      $label .= ' for="' . $module['enable']['#id'] . '"';
    }
    $row[] = $label . '><strong>' . drupal_render($module['name']) . '</strong></label>';
    $row[] = drupal_render($module['version']);
    // Add the description, along with any modules it requires.
    $description = drupal_render($module['description']);
    if ($module['#requires']) {
      $description .= '<div class="admin-requirements">' . t('Requires: !module-list', array('!module-list' => implode(', ', $module['#requires']))) . '</div>';
    }
    if ($module['#required_by']) {
      $description .= '<div class="admin-requirements">' . t('Required by: !module-list', array('!module-list' => implode(', ', $module['#required_by']))) . '</div>';
    }
    $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),
      );
    }
    $rows[] = $row;
  }

  return theme('table', array('header' => $form['#header'], 'rows' => $rows));
}