summaryrefslogtreecommitdiff
path: root/modules/menu
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-30 03:38:22 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-30 03:38:22 +0000
commit196aaa7d51b5ea9ac6422b93937b9070d5832272 (patch)
treeeb947ef65e621185ee910f1878d2e580f4c6efc4 /modules/menu
parent12ed4706557d978b0f43c3b8ab8cf454ebb590ac (diff)
downloadbrdo-196aaa7d51b5ea9ac6422b93937b9070d5832272.tar.gz
brdo-196aaa7d51b5ea9ac6422b93937b9070d5832272.tar.bz2
#553944 follow-up by David_Rothstein: Allow modules to override per-page custom themes.
Diffstat (limited to 'modules/menu')
-rw-r--r--modules/menu/menu.api.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/modules/menu/menu.api.php b/modules/menu/menu.api.php
index 8a39032fb..b8f4335e2 100644
--- a/modules/menu/menu.api.php
+++ b/modules/menu/menu.api.php
@@ -175,10 +175,13 @@
* - "access arguments": An array of arguments to pass to the access callback
* function, with path component substitution as described above.
* - "theme callback": Optional. A function returning the machine-readable
- * name of the theme that will be used to render the page. If the function
- * returns nothing, the main site theme will be used. If no function is
- * provided, the main site theme will also be used, unless a value is
- * inherited from a parent menu item.
+ * name of the default theme that will be used to render the page. If this
+ * function is provided, it is expected to return a currently-active theme
+ * on the site (otherwise, the main site theme will be used instead). If no
+ * function is provided, the main site theme will also be used, unless a
+ * value is inherited from a parent menu item. In all cases, the results of
+ * this function can be dynamically overridden for a particular page
+ * request by modules which implement hook_custom_theme().
* - "theme arguments": An array of arguments to pass to the theme callback
* function, with path component substitution as described above.
* - "file": A file that will be included before the page callback is called;