diff options
author | Dries Buytaert <dries@buytaert.net> | 2011-02-19 01:07:00 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2011-02-19 01:07:00 +0000 |
commit | d58e24b2478349257a193a02a06345c570a4c2b3 (patch) | |
tree | 91ed20f55ca14fe9f29472bd08ad73c5345500ad | |
parent | 0b5a09cc64e9853e5e56398138e3c725fd63948d (diff) | |
download | brdo-d58e24b2478349257a193a02a06345c570a4c2b3.tar.gz brdo-d58e24b2478349257a193a02a06345c570a4c2b3.tar.bz2 |
- Patch #1020906 by RoboPhred: differentiate process/preprocess hook documentation.
-rw-r--r-- | includes/theme.inc | 6 | ||||
-rw-r--r-- | modules/system/theme.api.php | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 0b14b9f83..61bd8a8ca 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -2038,6 +2038,9 @@ function _theme_table_cell($cell, $header = FALSE) { * Adds a default set of helper variables for variable processors and templates. * This comes in before any other preprocess function which makes it possible to * be used in default theme implementations (non-overridden theme functions). + * + * For more detailed information, see theme(). + * */ function template_preprocess(&$variables, $hook) { global $user; @@ -2115,6 +2118,9 @@ function _template_preprocess_default_variables() { /** * A default process function used to alter variables as late as possible. + * + * For more detailed information, see theme(). + * */ function template_process(&$variables, $hook) { // Flatten out classes. diff --git a/modules/system/theme.api.php b/modules/system/theme.api.php index 2284a7c76..a585b73db 100644 --- a/modules/system/theme.api.php +++ b/modules/system/theme.api.php @@ -100,6 +100,8 @@ function hook_form_system_theme_settings_alter(&$form, &$form_state) { * It is called for all invocations of theme(), to allow modules to add to * or override variables for all theme hooks. * + * For more detailed information, see theme(). + * * @param $variables * The variables array (modify in place). * @param $hook @@ -146,6 +148,8 @@ function hook_preprocess(&$variables, $hook) { * hook. It should only be used if a module needs to override or add to the * theme preprocessing for a theme hook it didn't define. * + * For more detailed information, see theme(). + * * @param $variables * The variables array (modify in place). */ @@ -162,6 +166,8 @@ function hook_preprocess_HOOK(&$variables) { * It is called for all invocations of theme(), to allow modules to add to * or override variables for all theme hooks. * + * For more detailed information, see theme(). + * * @param $variables * The variables array (modify in place). * @param $hook @@ -188,6 +194,8 @@ function hook_process(&$variables, $hook) { * hook. It should only be used if a module needs to override or add to the * theme processing for a theme hook it didn't define. * + * For more detailed information, see theme(). + * * @param $variables * The variables array (modify in place). */ |