Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cern_integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
modules
cern_integration
Commits
2f0c1805
Commit
2f0c1805
authored
7 years ago
by
root
Browse files
Options
Downloads
Patches
Plain Diff
Fix on the removal of centrally managed modules
parent
cd3f6d6b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cern_integration.info
+1
-1
1 addition, 1 deletion
cern_integration.info
cern_integration.module
+6
-4
6 additions, 4 deletions
cern_integration.module
with
7 additions
and
5 deletions
cern_integration.info
+
1
−
1
View file @
2f0c1805
name = CERN Integration
package = CERN
description = Provides CERN site integration for Drupal.
version = "7.X-1.1
0
"
version = "7.X-1.1
1
"
core = 7.x
dependencies[] = shib_auth
...
...
This diff is collapsed.
Click to expand it.
cern_integration.module
+
6
−
4
View file @
2f0c1805
...
...
@@ -561,12 +561,14 @@ function cern_integration_form_domain_301_redirect_admin_form_alter(&$form, &$fo
function
cern_integration_update_projects_alter
(
&
$projects
)
{
// Remove all centrally managed modules.
foreach
(
module_list
()
as
$module
)
{
if
(
preg_match
(
'/^sites\/all\/modules\//'
,
drupal_get_path
(
'module'
,
$module
)))
{
// This works only if the module name matches the project name.
unset
(
$projects
[
$module
]);
foreach
(
system_list
(
"module_enabled"
)
as
$module
)
{
if
(
preg_match
(
'/^sites\/all\/modules\//'
,
drupal_get_path
(
'module'
,
$module
->
name
)))
{
if
(
isset
(
$module
->
info
[
"project"
])){
unset
(
$projects
[
$module
->
info
[
"project"
]]);
}
}
}
// Remove all centrally managed themes and their subthemes.
$array_themes
=
list_themes
();
foreach
(
$array_themes
as
$theme_obj
)
{
...
...
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