function drupal_alter

Passes alterable variables to specific hook_TYPE_alter() implementations.

Deprecated

as of Drupal 8.0. Use Drupal::moduleHandler()->alter($hook).

See also

\Drupal\Core\Extension\ModuleHandler::alter()

73 calls to drupal_alter()
1 string reference to 'drupal_alter'

File

drupal/core/includes/bootstrap.inc, line 2230
Functions that need to be loaded on every Drupal request.

Code

function drupal_alter($type, &$data, &$context1 = NULL, &$context2 = NULL) {
  return Drupal::moduleHandler()
    ->alter($type, $data, $context1, $context2);
}