Commit d58e24b2 authored by Dries's avatar Dries

- Patch #1020906 by RoboPhred: differentiate process/preprocess hook documentation.

parent 0b5a09cc
......@@ -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.
......
......@@ -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).
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment