You are here

function _systeminfo_admin_overview_drupal_themes in System Information 6.3

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

File

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

Code

function _systeminfo_admin_overview_drupal_themes() {
  $rows = array();
  foreach (list_themes() as $theme) {
    if ($theme->status) {
      $themes_version = variable_get('systeminfo_overview_themes_datestamp', 0) && isset($theme->info['datestamp']) ? $theme->info['version'] . ' ' . theme('placeholder', '(' . format_date($theme->info['datestamp'], 'small') . ')') : $theme->info['version'];
      $rows[$theme->name] = array(
        $theme->info['name'],
        $themes_version,
      );
    }
  }
  ksort($rows);
  return theme('table', array(), $rows, array(
    'class' => 'systeminfo systeminfo-width50',
  ));
}