function hook_process_HOOK

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).

36 functions implement hook_process_HOOK()

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

ajax_process_form in drupal/core/includes/ajax.inc
Form element processing handler for the #ajax form property.
bartik_process_html in drupal/core/themes/bartik/bartik.theme
Implements hook_process_HOOK() for html.tpl.php.
bartik_process_maintenance_page in drupal/core/themes/bartik/bartik.theme
Implements hook_process_HOOK() for maintenance-page.html.twig.
bartik_process_page in drupal/core/themes/bartik/bartik.theme
Implements hook_process_HOOK() for page.html.twig.
drupal_process_attached in drupal/core/includes/common.inc
Adds attachments to a render() structure.

... See full list

File

drupal/core/modules/system/theme.api.php, line 202

Code

function hook_process_HOOK(&$variables) {

  // @todo There are no use-cases in Drupal core for this hook. Find one from a
  //   contributed module, or come up with a good example. Coming up with a good
  //   example might be tough, since the intent is for nearly everything to be
  //   achievable via preprocess functions, and for process functions to only be
  //   used when requiring the later execution time.
}