| 7 theme.api.php | hook_process_HOOK(&$variables) |
| 8 theme.api.php | hook_process_HOOK(&$variables) |
Process theme variables for a specific theme hook.
This hook allows modules to process theme variables for a specific theme 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().
Parameters
$variables: The variables array (modify in place).
File
- modules/
system/ theme.api.php, line 201
Code
function hook_process_HOOK(&$variables) {
$variables['classes'] .= ' my_added_class';
}
Login or register to post comments
Comments
compare to hook_preprocess_HOOK
hook_process_HOOKruns after the equivalent hook_preprocess_HOOK and is intended to help with finalising changes introduced by the preprocess.