function alpha_theme_trail

cis7 alpha_theme_trail($theme)
cle7 alpha_theme_trail($theme)
elmsmedia7 alpha_theme_trail($theme)
icor7 alpha_theme_trail($theme)
meedjum_blog7 alpha_theme_trail($theme)
mooc7 alpha_theme_trail($theme)

Builds the full theme trail (deepest base theme first, subtheme last) for a theme.


$theme: The key (machin-readable name) of a theme.

Return value

An array of all themes in the trail, keyed by theme key.

5 calls to alpha_theme_trail()
alpha_alter in sites/all/themes/ulmus/omega/alpha/includes/
This function "fixes" drupal_alter so it also works in the theme-settings and anywhere else where you want to be 100% certain that drupal_alter uses the proper global $theme.
alpha_get_theme in sites/all/themes/ulmus/omega/alpha/includes/
Returns the theme container object for the current theme.
alpha_grid_css in sites/all/themes/ulmus/omega/alpha/includes/
Builds an array of grid CSS information.
alpha_info_trail in sites/all/themes/ulmus/omega/alpha/includes/
Retrieves a .info element for the active theme trail.
alpha_invoke in sites/all/themes/ulmus/omega/alpha/includes/
Invokes a preprocess or process hook in all base themes aswell as the subtheme (in that order) by including the corresponding .inc file and calling the associated function.


sites/all/themes/ulmus/omega/alpha/includes/, line 185
Helper functions for the Alpha base theme.


function alpha_theme_trail($theme) {
  $static = &drupal_static(__FUNCTION__);

  if (!isset($static)) {
    $themes = list_themes();

    if (isset($themes[$theme]->info['base theme'])) {
      foreach (system_find_base_themes($themes, $theme) as $base => $name) {
        if ($name && isset($themes[$base])) {
          $static[$theme][$base] = $themes[$base]->info['name'];

    // Add our current subtheme ($key) to that array.
    if (isset($themes[$theme])) {
      $static[$theme][$theme] = $themes[$theme]->info['name'];

  if (isset($static[$theme])) {
    return $static[$theme];



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.