Commit 038ae1cf authored by catch's avatar catch
Browse files

Issue #1793074 by alexpott: Follow-up Convert .info files to YAML.

parent d2ace64a
...@@ -2851,16 +2851,16 @@ function _system_rebuild_module_data() { ...@@ -2851,16 +2851,16 @@ function _system_rebuild_module_data() {
// Look for the info file. // Look for the info file.
$module->info = drupal_parse_info_file(dirname($module->uri) . '/' . $module->name . '.info.yml'); $module->info = drupal_parse_info_file(dirname($module->uri) . '/' . $module->name . '.info.yml');
// Add the info file modification time, so it becomes available for
// contributed modules to use for ordering module lists.
$module->info['mtime'] = filemtime(dirname($module->uri) . '/' . $module->name . '.info.yml');
// Skip modules that don't provide info. // Skip modules that don't provide info.
if (empty($module->info)) { if (empty($module->info)) {
unset($modules[$key]); unset($modules[$key]);
continue; continue;
} }
// Add the info file modification time, so it becomes available for
// contributed modules to use for ordering module lists.
$module->info['mtime'] = filemtime(dirname($module->uri) . '/' . $module->name . '.info.yml');
// Merge in defaults and save. // Merge in defaults and save.
$modules[$key]->info = $module->info + $defaults; $modules[$key]->info = $module->info + $defaults;
......
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