function drush_get_themes

8.0.x environment_7.inc drush_get_themes($include_hidden = TRUE)
8.0.x environment_6.inc drush_get_themes($include_hidden = TRUE)
8.0.x environment.inc drush_get_themes($include_hidden = TRUE)
6.x environment_6.inc drush_get_themes($include_hidden = TRUE)
6.x environment.inc drush_get_themes($include_hidden = TRUE)
6.x environment_7.inc drush_get_themes($include_hidden = TRUE)
7.x environment_7.inc drush_get_themes($include_hidden = TRUE)
7.x environment_6.inc drush_get_themes($include_hidden = TRUE)
7.x environment.inc drush_get_themes($include_hidden = TRUE)
3.x environment_7.inc drush_get_themes()
3.x environment_6.inc drush_get_themes()
3.x environment_5.inc drush_get_themes()
4.x environment_6.inc drush_get_themes()
4.x environment_5.inc drush_get_themes()
4.x environment.inc drush_get_themes()
5.x environment_6.inc drush_get_themes($include_hidden = TRUE)
5.x environment.inc drush_get_themes($include_hidden = TRUE)
master environment_7.inc drush_get_themes($include_hidden = TRUE)
master environment.inc drush_get_themes($include_hidden = TRUE)

Get complete information for all available themes.

We need to set the type for those themes that are not already in the system table.

Return value

An array containing theme info for all available themes.

1 call to drush_get_themes()
drush_get_extensions in includes/environment.inc
Get complete information for all available extensions (modules and themes).
1 string reference to 'drush_get_themes'

File

commands/core/drupal/environment_5.inc, line 169
Specific functions for a drupal 5 environment. drush_include_engine() magically includes either this file or environment_X.inc depending on which version of drupal drush is called from.

Code

function drush_get_themes() {
  $themes = system_theme_data();
  foreach ($themes as $theme) {
    if (!isset($theme->type)) {
      $theme->type = 'theme';
    }
  }

  return $themes;
}