Commit 03d4cbdb authored by Dries's avatar Dries
Browse files

- Patch #875162 by ctmattice1: documentation improvement for hook_theme_registry_alter().

parent e3a52979
......@@ -1746,19 +1746,18 @@ function hook_theme($existing, $type, $theme, $path) {
*
* For example:
* @code
* $theme_registry['user_profile'] = array(
* 'variables' => array(
* 'account' => NULL,
* ),
* 'template' => 'modules/user/user-profile',
* 'file' => 'modules/user/user.pages.inc',
* 'type' => 'module',
* 'theme path' => 'modules/user',
* 'preprocess functions' => array(
* 0 => 'template_preprocess',
* 1 => 'template_preprocess_user_profile',
* ),
* )
* $theme_registry['user_profile'] = array(
* 'variables' => array(
* 'account' => NULL,
* ),
* 'template' => 'modules/user/user-profile',
* 'file' => 'modules/user/user.pages.inc',
* 'type' => 'module',
* 'theme path' => 'modules/user',
* 'preprocess functions' => array(
* 0 => 'template_preprocess',
* 1 => 'template_preprocess_user_profile',
* ),
* );
* @endcode
*
......
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