summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-04-13 11:46:20 (GMT)
committerAlex Pott2015-04-13 11:46:20 (GMT)
commitc9a38f13f26b179b13f8a64075250142d01b9b3e (patch)
tree6c7615f1552dfdf87f231f0b237946fcc368843c
parent70ddbe8f8a3a48c99d3f5dbb099cf31203a6b309 (diff)
Issue #2430909 by anwar_max, wadmiraal, harshil.maradiya, joshi.rohit100, ClientGuy: hook_theme_suggestions() hook_theme_suggestions_HOOK() documentation is incorrect about how the hook is invoked
-rw-r--r--core/modules/system/theme.api.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/modules/system/theme.api.php b/core/modules/system/theme.api.php
index fcbacf1..a9a6f61 100644
--- a/core/modules/system/theme.api.php
+++ b/core/modules/system/theme.api.php
@@ -504,13 +504,12 @@ function hook_preprocess_HOOK(&$variables) {
/**
* Provides alternate named suggestions for a specific theme hook.
*
- * This hook allows the module implementing hook_theme() for a theme hook to
- * provide alternative theme function or template name suggestions. This hook is
- * only invoked for the first module implementing hook_theme() for a theme hook.
+ * This hook allows modules to provide alternative theme function or template
+ * name suggestions.
*
* HOOK is the least-specific version of the hook being called. For example, if
- * '#theme' => 'node__article' is called, then node_theme_suggestions_node()
- * will be invoked, not node_theme_suggestions_node__article(). The specific
+ * '#theme' => 'node__article' is called, then hook_theme_suggestions_node()
+ * will be invoked, not hook_theme_suggestions_node__article(). The specific
* hook called (in this case 'node__article') is available in
* $variables['theme_hook_original'].
*