Commit 496f5533 authored by alexpott's avatar alexpott

Issue #2560597 by webchick: Mark Migrate* modules as Experimental

parent f3040e71
name: Migrate
type: module
description: 'Handles migrations'
package: Core
package: Core (Experimental)
version: VERSION
core: 8.x
;configure: admin/structure/migrate
name: Migrate Drupal
type: module
description: 'Contains migrations from older Drupal versions.'
package: Core
package: Core (Experimental)
version: VERSION
core: 8.x
dependencies:
......
......@@ -50,6 +50,22 @@ function system_requirements($phase) {
'weight' => -9
);
}
// Warn if any experimental modules are installed.
$experimental = array();
$enabled_modules = system_rebuild_module_data();
foreach ($enabled_modules as $module => $data) {
if ($data->info['package'] === 'Core (Experimental)') {
$experimental[$module] = $data->info['name'];
}
}
if (!empty($experimental)) {
$requirements['experimental'] = array(
'title' => t('Experimental modules enabled'),
'value' => t('Experimental modules found: %module_list. Experimental modules are provided for testing purposes only. Use at your own risk.', array('%module_list' => implode(', ', $experimental))),
'severity' => REQUIREMENT_WARNING,
);
}
}
// Web server information.
......
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