Skip to content
Snippets Groups Projects
Commit a0e8d36f authored by Chris Leppanen's avatar Chris Leppanen
Browse files

Dang it. Add feeds_alter() back because contrib depends on it.

parent 8658a4ee
No related branches found
No related tags found
No related merge requests found
......@@ -1044,6 +1044,32 @@ function feeds_include_simplepie() {
return FALSE;
}
/**
* @deprecated
*
* Simplified drupal_alter().
*
* - None of that 'multiple parameters by ref' crazyness.
* - Don't use module_implements() to allow hot including on behalf
* implementations (see mappers/).
*
* @todo This needs to be removed and drupal_alter() used. This is crazy dumb.
*/
function feeds_alter($type, &$data) {
$args = array(&$data);
$additional_args = func_get_args();
array_shift($additional_args);
array_shift($additional_args);
$args = array_merge($args, $additional_args);
$hook = $type . '_alter';
foreach (module_list() as $module) {
if (module_hook($module, $hook)) {
call_user_func_array($module . '_' . $hook, $args);
}
}
}
/**
* @}
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment