Skip to content
Snippets Groups Projects
Commit cd3f6d6b authored by Eduardo Alvarez Fernandez's avatar Eduardo Alvarez Fernandez
Browse files

Fixes bug described at DRUPAL-203

parent 9f0f44e0
No related branches found
No related tags found
No related merge requests found
......@@ -132,23 +132,21 @@ function cern_integration_form_update_manager_update_form_alter(&$form, &$form_s
return;
}
$_list_central_modules = _cern_integration_get_list_central_modules();
foreach ($form['projects']['#options'] as $module => $options) {
if (! _cern_integration_check_is_central_module($module, "", $_list_central_modules)) {
foreach ($form['projects']['#options'] as $project => $options) {
if (! _cern_integration_check_is_central_module($project, "", $_list_central_modules)) {
continue;
}
// Special case for things like google_analytics with files using googleanalytics
$module = ($project == 'google_analytics' ? 'googleanalytics' : $project);
$module_path = drupal_get_path('module', $module);
if (empty($module_path)) {
// Special case for things like google_analytics with files using googleanalytics
$module_path = drupal_get_path('module', str_replace("_", "", $module));
if (empty($module_path)) {
continue;
}
}
if (strpos($module_path, "sites/all/modules") !== FALSE) {
$form['projects']["$module"]['#disabled'] = TRUE;
$form['projects']["#options"][$module]['title'] .= " <b>[ infra ]</b>";
$form['projects']["$project"]['#disabled'] = TRUE;
$form['projects']["#options"][$project]['title'] .= " <b>[ infra ]</b>";
} else {
$form['projects']["#options"][$module]['title'] .= " <b>[ local ]</b>";
$form['projects']["#options"][$project]['title'] .= " <b>[ local ]</b>";
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment