function _drush_pm_info_theme

8.0.x info.pm.inc _drush_pm_info_theme($info)
6.x info.pm.inc _drush_pm_info_theme($info)
7.x info.pm.inc _drush_pm_info_theme($info)
3.x pm.drush.inc _drush_pm_info_theme($info)
4.x pm.drush.inc _drush_pm_info_theme($info)
5.x info.pm.inc _drush_pm_info_theme($info)
master info.pm.inc _drush_pm_info_theme($info)

Return a string with info of a theme.

1 call to _drush_pm_info_theme()
drush_pm_info in commands/pm/pm.drush.inc
Command callback. Show detailed info for one or more extension.

File

commands/pm/pm.drush.inc, line 973
The drush Project Manager

Code

function _drush_pm_info_theme($info) {
  $major_version = drush_drupal_major_version();

  $data = _drush_pm_info_extension($info);
  if ($major_version == 5) {
    $data['Engine'] = $info->description;
  }
  else {
    $data['Core'] = $info->info['core'];
    $data['PHP'] = $info->info['php'];
    $data['Engine'] = $info->info['engine'];
    $data['Base theme'] = isset($info->base_themes) ? implode($info->base_themes, ', ') : '';
    $regions = implode(', ', $info->info['regions']);
    $data['Regions'] = $regions;
    $features = implode(', ', $info->info['features']);
    $data['Features'] = $features;
    if (count($info->info['stylesheets']) > 0) {
      $data['Stylesheets'] = '';
      foreach ($info->info['stylesheets'] as $media => $files) {
        $files = implode(', ', array_keys($files));
        $data['Media ' . $media] = $files;
      }
    }
    if (count($info->info['scripts']) > 0) {
      $scripts = implode(', ', array_keys($info->info['scripts']));
      $data['Scripts'] = $scripts;
    }
  }

  return $data;
}