Skip to content
Snippets Groups Projects
Commit 025c43c6 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #316753 by dvessel: exanded PHP doc of path_to_theme().

parent b182fd8e
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -703,7 +703,14 @@ function drupal_discover_template($paths, $suggestions, $extension = '.tpl.php')
}
/**
* Return the path to the currently selected theme.
* Return 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.
*/
function path_to_theme() {
global $theme_path;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment