Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
feeds
Commits
a0e8d36f
Commit
a0e8d36f
authored
12 years ago
by
Chris Leppanen
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
feeds.module
+26
-0
26 additions, 0 deletions
feeds.module
with
26 additions
and
0 deletions
feeds.module
+
26
−
0
View file @
a0e8d36f
...
...
@@ -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
);
}
}
}
/**
* @}
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment