Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coder-3433266
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
coder-3433266
Commits
b252a034
Commit
b252a034
authored
15 years ago
by
Stella Power
Browse files
Options
Downloads
Patches
Plain Diff
#569990
by matason, snufkin - added d6 to d7 review for hook_profile_alter()
change
parent
5883f85a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
coder_review/includes/coder_review_7x.inc
+15
-1
15 additions, 1 deletion
coder_review/includes/coder_review_7x.inc
coder_review/tests/coder_review_7x.test
+1
-0
1 addition, 0 deletions
coder_review/tests/coder_review_7x.test
with
16 additions
and
1 deletion
coder_review/includes/coder_review_7x.inc
+
15
−
1
View file @
b252a034
...
...
@@ -689,7 +689,12 @@ function coder_review_7x_reviews() {
'#value'
=>
'[\s\(]user_authenticate\s*\(\s*'
.
$argex
.
'\s*\)'
,
'#warning_callback'
=>
'_coder_review_7x_user_authenticate_warning'
,
),
// http://drupal.org/node/224333#hook-user-changes --- Removed several unecessary arguments to various hook_user_$op hooks and removed hook_profile_alter
// http://drupal.org/node/224333#hook-user-changes
array
(
'#type'
=>
'regex'
,
'#value'
=>
'function\s+\w+_profile_alter\s*\('
,
'#warning_callback'
=>
'_coder_review_7x_hook_profile_alter_warning'
,
),
// Node API
...
...
@@ -1911,3 +1916,12 @@ function _coder_review_7x_hook_access_warning() {
);
}
function
_coder_rewview_7x_hook_profile_alter_warning
()
{
return
array
(
'#warning'
=>
t
(
'!hook_profile_alter() has been removed in favour of !hook_user_view().'
,
array
(
'!hook_profile_alter()'
=>
theme
(
'drupalapi'
,
array
(
'function'
=>
'hook_profile_alter'
,
'version'
=>
6
)),
'!hook_user_view()'
=>
theme
(
'drupalapi'
,
array
(
'function'
=>
'hook_user_view'
,
'version'
=>
7
)),
)),
);
}
This diff is collapsed.
Click to expand it.
coder_review/tests/coder_review_7x.test
+
1
−
0
View file @
b252a034
...
...
@@ -499,6 +499,7 @@ class CoderReviewUpgrade7xTest extends CoderReviewTestCase {
$this
->
assertCoderReviewFail
(
' user_authenticate(&$form_state);'
);
// http://drupal.org/node/224333#hook-user-changes
$this
->
assertCoderReviewFail
(
' function mymodule_profile_alter('
);
}
function
testNode7x
()
{
...
...
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