Commit 3d8febba authored by Dries's avatar Dries
Browse files

- Patch #132018 by alienbrain: replace instances of _module_parse_info_file()...

- Patch #132018 by alienbrain: replace instances of _module_parse_info_file() with drupal_parse_info_file().
parent 318ac983
...@@ -111,7 +111,7 @@ function help_page() { ...@@ -111,7 +111,7 @@ function help_page() {
$name = arg(2); $name = arg(2);
$output = ''; $output = '';
if (module_hook($name, 'help')) { if (module_hook($name, 'help')) {
$module = _module_parse_info_file(drupal_get_path('module', $name) .'/'. $name .'.info'); $module = drupal_parse_info_file(drupal_get_path('module', $name) .'/'. $name .'.info');
drupal_set_title($module['name']); drupal_set_title($module['name']);
$temp = module_invoke($name, 'help', "admin/help#$name"); $temp = module_invoke($name, 'help', "admin/help#$name");
......
...@@ -1281,7 +1281,7 @@ function system_themes_form_submit($form_id, $form_values) { ...@@ -1281,7 +1281,7 @@ function system_themes_form_submit($form_id, $form_values) {
* Modules can be enabled or disabled and set for throttling if the throttle module is enabled. * Modules can be enabled or disabled and set for throttling if the throttle module is enabled.
* The list of modules gets populated by module.info files, which contain each module's name, * The list of modules gets populated by module.info files, which contain each module's name,
* description and dependencies. * description and dependencies.
* @sa _module_parse_info_file for information on module.info descriptors. * @sa drupal_parse_info_file for information on module.info descriptors.
* *
* Dependency checking is performed to ensure that a module cannot be enabled if the module has * Dependency checking is performed to ensure that a module cannot be enabled if the module has
* disabled dependencies and also to ensure that the module cannot be disabled if the module has * disabled dependencies and also to ensure that the module cannot be disabled if the module has
...@@ -1700,7 +1700,7 @@ function system_modules_uninstall_confirm_form($form_values) { ...@@ -1700,7 +1700,7 @@ function system_modules_uninstall_confirm_form($form_values) {
// Construct the hidden form elements and list items. // Construct the hidden form elements and list items.
foreach (array_filter($form_values['uninstall']) as $module => $value) { foreach (array_filter($form_values['uninstall']) as $module => $value) {
$info = _module_parse_info_file(dirname(drupal_get_filename('module', $module)) .'/'. $module .'.info'); $info = drupal_parse_info_file(dirname(drupal_get_filename('module', $module)) .'/'. $module .'.info');
$uninstall[] = $info['name']; $uninstall[] = $info['name'];
$form['uninstall'][$module] = array('#type' => 'hidden', $form['uninstall'][$module] = array('#type' => 'hidden',
'#value' => 1, '#value' => 1,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment