Issue #2560597 by webchick: Mark Migrate* modules as Experimental
parent
f3040e71cb
commit
496f5533f7
|
@ -1,7 +1,7 @@
|
||||||
name: Migrate
|
name: Migrate
|
||||||
type: module
|
type: module
|
||||||
description: 'Handles migrations'
|
description: 'Handles migrations'
|
||||||
package: Core
|
package: Core (Experimental)
|
||||||
version: VERSION
|
version: VERSION
|
||||||
core: 8.x
|
core: 8.x
|
||||||
;configure: admin/structure/migrate
|
;configure: admin/structure/migrate
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
name: Migrate Drupal
|
name: Migrate Drupal
|
||||||
type: module
|
type: module
|
||||||
description: 'Contains migrations from older Drupal versions.'
|
description: 'Contains migrations from older Drupal versions.'
|
||||||
package: Core
|
package: Core (Experimental)
|
||||||
version: VERSION
|
version: VERSION
|
||||||
core: 8.x
|
core: 8.x
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
|
@ -50,6 +50,22 @@ function system_requirements($phase) {
|
||||||
'weight' => -9
|
'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.
|
// Web server information.
|
||||||
|
|
Loading…
Reference in New Issue