function alpha_theme_trail

cis7 alpha.inc alpha_theme_trail($theme)
cle7 alpha.inc alpha_theme_trail($theme)
elmsmedia7 alpha.inc alpha_theme_trail($theme)
icor7 alpha.inc alpha_theme_trail($theme)
meedjum_blog7 alpha.inc alpha_theme_trail($theme)
mooc7 alpha.inc alpha_theme_trail($theme)

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

Parameters

$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/alpha.inc
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/alpha.inc
Returns the theme container object for the current theme.
alpha_grid_css in sites/all/themes/ulmus/omega/alpha/includes/alpha.inc
Builds an array of grid CSS information.
alpha_info_trail in sites/all/themes/ulmus/omega/alpha/includes/alpha.inc
Retrieves a .info element for the active theme trail.
alpha_invoke in sites/all/themes/ulmus/omega/alpha/includes/alpha.inc
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.

File

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

Code

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 | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.