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.

Parameters

$include_hidden: Boolean to indicate whether hidden themes should be excluded or not.

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_6.inc, line 163
Specific functions for a drupal 6 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($include_hidden = TRUE) {
  $themes = system_theme_data();
  foreach ($themes as $key => $theme) {
    if (!isset($theme->type)) {
      $theme->type = 'theme';
    }
    if ((!$include_hidden) && isset($theme->info['hidden']) && ($theme->info['hidden'])) {
      unset($themes[$key]);
    }
  }

  return $themes;
}