Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coder-3216641
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
coder-3216641
Commits
285bc307
Commit
285bc307
authored
Jan 21, 2010
by
Jim Berry
Browse files
Options
Downloads
Patches
Plain Diff
#689758
by solotandem: Fix code so it runs in 7.x-alpha 1.
parent
974c0d58
Branches
Branches containing commit
Tags
7.x-1.0-beta2
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
coder_review/CHANGELOG.txt
+8
-0
8 additions, 0 deletions
coder_review/CHANGELOG.txt
coder_review/coder_review.module
+4
-0
4 additions, 0 deletions
coder_review/coder_review.module
coder_review/includes/coder_review_7x.inc
+3
-3
3 additions, 3 deletions
coder_review/includes/coder_review_7x.inc
with
15 additions
and
3 deletions
coder_review/CHANGELOG.txt
+
8
−
0
View file @
285bc307
...
...
@@ -2,6 +2,14 @@
Coder Review 7.x-3.x, xxxx-xx-xx
---------------------------------
#689758 by solotandem:
- Fix code so it runs in 7.x-alpha 1
- coder_review.module
- set $form_state['rebuild'] to TRUE in coder_review_page_form_submit
- form api no longer does an automatic rebuild simply by setting $form_state['storage']
- _coder_review_7x_optional_block_review_callback
- remove opportunistic search for module name (path may include a period)
#666714 by dereine :
- Fixed parameters in coder_review_drush_help().
#607592 by japerry, stella :
...
...
This diff is collapsed.
Click to expand it.
coder_review/coder_review.module
+
4
−
0
View file @
285bc307
...
...
@@ -689,7 +689,11 @@ function _coder_review_get_default_settings($arg = 'default') {
* Implements hook_submit().
*/
function
coder_review_page_form_submit
(
$form
,
&
$form_state
)
{
// In D7, setting values in this variable does not trigger a form rebuild.
$form_state
[
'storage'
]
=
$form_state
[
'values'
];
// Rebuild form with user selections.
$form_state
[
'rebuild'
]
=
TRUE
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
coder_review/includes/coder_review_7x.inc
+
3
−
3
View file @
285bc307
...
...
@@ -994,9 +994,9 @@ function _coder_review_7x_optional_block_review_callback(&$coder_args, $review,
}
// Find out the info filename and load it.
$p
os
=
strpos
(
$filename
,
'.'
);
$modulename
=
substr
(
$filename
,
0
,
$pos
);
$ini
=
parse_ini_file
(
$modulename
.
'.info'
);
$p
ath_info
=
pathinfo
(
$filename
);
list
(
$modulename
)
=
explode
(
'.'
,
$path_info
[
'basename'
],
2
);
$ini
=
parse_ini_file
(
$path_info
[
'dirname'
]
.
'/'
.
$modulename
.
'.info'
);
// Check if the dependency has been declared.
$dependency_declared
=
(
isset
(
$ini
[
'dependencies'
])
&&
is_array
(
$ini
[
'dependencies'
]))
?
in_array
(
'block'
,
$ini
[
'dependencies'
])
:
FALSE
;
...
...
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