1.12.x drupal.inc drupal_alter($type, &$data, &$context1 = NULL, &$context2 = NULL, &$context3 = NULL)
1.10.x drupal.inc drupal_alter($type, &$data, &$context1 = NULL, &$context2 = NULL, &$context3 = NULL)
1.11.x drupal.inc drupal_alter($type, &$data, &$context1 = NULL, &$context2 = NULL, &$context3 = NULL)
1.7.x 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

includes/drupal.inc, line 2130
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);
}