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 an array with info of a theme.

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

File

commands/pm/info.pm.inc, line 129
pm-info command implementation.

Code

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

  $data = _drush_pm_info_extension($info);

  $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 = $info->info['regions'];
  $data['regions'] = $regions;
  $features = $info->info['features'];
  $data['features'] = $features;
  if (count($info->info['stylesheets']) > 0) {
    $data['stylesheets'] = '';
    foreach ($info->info['stylesheets'] as $media => $files) {
      $files = array_keys($files);
      $data['media ' . $media] = $files;
    }
  }
  if (count($info->info['scripts']) > 0) {
    $scripts = array_keys($info->info['scripts']);
    $data['scripts'] = $scripts;
  }
  return $data;
}