function path_to_theme

Returns the path to the current themed element.

It can point to the active theme or the module handling a themed implementation. For example, when invoked within the scope of a theming call it will depend on where the theming function is handled. If implemented from a module, it will point to the module. If implemented from the active theme, it will point to the active theme. When called outside the scope of a theming call, it will always point to the active theme.

3 calls to path_to_theme()
seven_preprocess_html in drupal/core/themes/seven/seven.theme
Implements hook_preprocess_HOOK() for html.tpl.php.
system_theme_settings in drupal/core/modules/system/system.admin.inc
Form builder; display theme configuration for entire site and individual themes.
template_preprocess in drupal/core/includes/theme.inc
Adds a default set of helper variables for variable processors and templates.

File

drupal/core/includes/theme.inc, line 1170
The theme system, which controls the output of Drupal.

Code

function path_to_theme() {
  global $theme_path;
  if (!isset($theme_path)) {
    drupal_theme_initialize();
  }
  return $theme_path;
}