function hook_preprocess_HOOK

cis7 theme.api.php hook_preprocess_HOOK(&$variables)
cle7 theme.api.php hook_preprocess_HOOK(&$variables)
elmsmedia7 theme.api.php hook_preprocess_HOOK(&$variables)
icor7 theme.api.php hook_preprocess_HOOK(&$variables)
meedjum_blog7 theme.api.php hook_preprocess_HOOK(&$variables)
mooc7 theme.api.php hook_preprocess_HOOK(&$variables)

Preprocess theme variables for a specific theme hook.

This hook allows modules to preprocess theme variables for a specific theme 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().

Parameters

$variables: The variables array (modify in place).

259 functions implement hook_preprocess_HOOK()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

adaptivetheme_admin_preprocess_page in sites/all/themes/ulmus/adaptivetheme/at_admin/template.php
Override or insert variables into page templates.
adaptivetheme_preprocess_aggregator_item in sites/all/themes/ulmus/adaptivetheme/at_core/inc/preprocess.inc
Preprocess variables for aggregator-item.tpl.php
adaptivetheme_preprocess_block in sites/all/themes/ulmus/adaptivetheme/at_core/inc/preprocess.inc
Preprocess variables for block.tpl.php
adaptivetheme_preprocess_breadcrumb in sites/all/themes/ulmus/adaptivetheme/at_core/inc/preprocess.inc
Preprocess variables for breadcrumbs
adaptivetheme_preprocess_comment in sites/all/themes/ulmus/adaptivetheme/at_core/inc/preprocess.inc
Preprocess variables for comment.tpl.php

... See full list

File

modules/system/theme.api.php, line 159

Code

function hook_preprocess_HOOK(&$variables) {
  // This example is from rdf_preprocess_image(). It adds an RDF attribute
  // to the image hook's variables.
  $variables['attributes']['typeof'] = array('foaf:Image');
}