path_to_engine

5 theme.inc path_to_engine()

Return the path to the currently selected engine.

1 call to path_to_engine()

File

includes/theme.inc, line 229
The theme system, which controls the output of Drupal.

Code

function path_to_engine() {
  global $theme, $theme_engine;

  if (!isset($theme)) {
    init_theme();
  }

  $engines = list_theme_engines();

  return dirname($engines[$theme_engine]->filename);
}
Login or register to post comments