You are here

function _systeminfo_admin_overview_drupal_modules in System Information 7.3

Same name and namespace in other branches
  1. 6.3 systeminfo.admin.inc \_systeminfo_admin_overview_drupal_modules()
1 call to _systeminfo_admin_overview_drupal_modules()
systeminfo_admin_overview in ./systeminfo.admin.inc
Menu callback; displays the overview page.

File

./systeminfo.admin.inc, line 105
Admin page callbacks for the systeminfo module.

Code

function _systeminfo_admin_overview_drupal_modules() {
  $rows = array();
  $install_profile = variable_get('install_profile', 'standard');
  foreach (module_list() as $module) {
    if ($module != $install_profile) {
      $module_info = system_get_info('module', $module);
      $module_version = variable_get('systeminfo_overview_modules_datestamp', 0) && isset($module_info['datestamp']) ? $module_info['version'] . ' ' . drupal_placeholder('(' . format_date($module_info['datestamp'], 'small') . ')') : $module_info['version'];
      $rows[$module_info['name']] = array(
        $module_info['name'],
        $module_version,
      );
    }
  }
  ksort($rows);
  return theme('table', array(
    'header' => array(),
    'rows' => $rows,
    'attributes' => array(
      'class' => array(
        'systeminfo',
        'systeminfo-width50',
      ),
    ),
  ));
}