| 7 theme.api.php | hook_process(&$variables, $hook) |
| 8 theme.api.php | hook_process(&$variables, $hook) |
Process theme variables.
This hook allows modules to process theme variables for theme templates. 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().
Parameters
$variables: The variables array (modify in place).
$hook: The name of the theme hook.
10 functions implement hook_process()
File
- modules/
system/ theme.api.php, line 175
Code
function hook_process(&$variables, $hook) {
// Wraps variables in RDF wrappers.
if (!empty($variables['rdf_template_variable_attributes_array'])) {
foreach ($variables['rdf_template_variable_attributes_array'] as $variable_name => $attributes) {
$context = array(
'hook' => $hook,
'variable_name' => $variable_name,
'variables' => $variables,
);
$variables[$variable_name] = theme('rdf_template_variable_wrapper', array('content' => $variables[$variable_name], 'attributes' => $attributes, 'context' => $context));
}
}
}
Login or register to post comments