summaryrefslogtreecommitdiff
path: root/modules/menu
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-02-05 01:05:17 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-02-05 01:05:17 +0000
commit993675ab6a1e0ab4ad6777f32e5f927e610b8b4c (patch)
tree2d604875d8f7d07f3a01c8f75420fd1949b13725 /modules/menu
parentc6dd7bec5e09c9a381f18f90baf9dacb280bd4cf (diff)
downloadbrdo-993675ab6a1e0ab4ad6777f32e5f927e610b8b4c.tar.gz
brdo-993675ab6a1e0ab4ad6777f32e5f927e610b8b4c.tar.bz2
#348627 by smk-ka and catch: Allow menu title callback property to bypass t() (+documentation and tests)
Diffstat (limited to 'modules/menu')
-rw-r--r--modules/menu/menu.api.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/menu/menu.api.php b/modules/menu/menu.api.php
index c69eaa79d..da1a36fc5 100644
--- a/modules/menu/menu.api.php
+++ b/modules/menu/menu.api.php
@@ -27,6 +27,9 @@
* contain the following key-value pairs:
*
* - "title": Required. The untranslated title of the menu item.
+ * - "title callback": Function to generate the title, defaults to t().
+ * If you require only the raw string to be output, set this to FALSE.
+ * - "title arguments": Arguments to send to t() or your custom callback.
* - "description": The untranslated description of the menu item.
* - "page callback": The function to call to display a web page when the user
* visits the path. If omitted, the parent menu item's callback will be used