1 drupal.inc drupal_alter($type, &$data, &$context1 = NULL, &$context2 = NULL, &$context3 = NULL)

Passes alterable variables to specific hook_TYPE_alter() implementations.

Deprecated

since 1.0.0

See also

backdrop_alter()

Related topics

File

core/includes/drupal.inc, line 2127
Contains constants and function wrappers for Drupal 7.x compatibility.

Code

function drupal_alter($type, &$data, &$context1 = NULL, &$context2 = NULL, &$context3 = NULL) {
  watchdog_deprecated_function('drupal', __FUNCTION__);
  backdrop_alter($type, $data, $context1, $context2, $context3);
}