Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
43aa968f
Commit
43aa968f
authored
17 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#203846
by pwolanin: remove PHP4 compatibility code.
parent
455e18c6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
includes/actions.inc
+1
-3
1 addition, 3 deletions
includes/actions.inc
modules/trigger/trigger.module
+2
-4
2 additions, 4 deletions
modules/trigger/trigger.module
with
3 additions
and
7 deletions
includes/actions.inc
+
1
−
3
View file @
43aa968f
...
...
@@ -22,8 +22,6 @@
* @param $object
* Parameter that will be passed along to the callback. Typically the
* object that the action will act on; a node, user or comment object.
* If the action does not act on an object, pass a dummy object. This
* is necessary to support PHP 4 object referencing.
* @param $context
* Parameter that will be passed along to the callback. $context is a
* keyed array containing extra information about what is currently
...
...
@@ -39,7 +37,7 @@
* An associative array containing the result of the function that
* performs the action, keyed on action ID.
*/
function
actions_do
(
$action_ids
,
&
$object
,
$context
=
NULL
,
$a1
=
NULL
,
$a2
=
NULL
)
{
function
actions_do
(
$action_ids
,
$object
=
NULL
,
$context
=
NULL
,
$a1
=
NULL
,
$a2
=
NULL
)
{
static
$stack
;
$stack
++
;
if
(
$stack
>
variable_get
(
'actions_max_stack'
,
35
))
{
...
...
This diff is collapsed.
Click to expand it.
modules/trigger/trigger.module
+
2
−
4
View file @
43aa968f
...
...
@@ -299,8 +299,7 @@ function trigger_comment($a1, $op) {
actions_do
(
$aid
,
$objects
[
$action_info
[
'type'
]],
$context
);
}
else
{
$comment
=
(
object
)
$a1
;
actions_do
(
$aid
,
$comment
,
$context
);
actions_do
(
$aid
,
(
object
)
$a1
,
$context
);
}
}
}
...
...
@@ -393,8 +392,7 @@ function trigger_taxonomy($op, $type, $array) {
'op'
=>
$op
);
foreach
(
$aids
as
$aid
=>
$action_info
)
{
$taxonomy_object
=
(
object
)
$array
;
actions_do
(
$aid
,
$taxonomy_object
,
$context
);
actions_do
(
$aid
,
(
object
)
$array
,
$context
);
}
}
...
...
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