drupal_alter
function drupal_alter
drupal_alter($type, &$data, &$context1 = NULL, &$context2 = NULL, &$context3 = NULL)
Passes alterable variables to specific hook_TYPE_alter() implementations.
This dispatch function hands off the passed-in variables to type-specific hook_TYPE_alter() implementations in modules. It ensures a consistent interface for all altering operations.
A maximum of 2 alterable arguments is supported (a third is supported for legacy reasons, but should not be used in new code). In case more arguments need to be passed and alterable, modules provide additional variables assigned by reference in the last $context argument:
$context = array( 'alterable' => &$alterable, 'unalterable' => $unalterable, 'foo' => 'bar', ); drupal_alter('mymodule_data', $alterable1, $alterable2, $context);
Note that objects are a