Update to Drupal 8.0.0-beta15. For more information, see: https://www.drupal.org/node/2563023

This commit is contained in:
Pantheon Automation 2015-09-04 13:20:09 -07:00 committed by Greg Anderson
parent 2720a9ec4b
commit f3791f1da3
1898 changed files with 54300 additions and 11481 deletions

View file

@ -57,3 +57,17 @@ function statistics_schema() {
return $schema;
}
/**
* Disable the Statistics module if the node module is not enabled.
*/
function statistics_update_8001() {
if (!\Drupal::moduleHandler()->moduleExists('node')) {
if (\Drupal::service('module_installer')->uninstall(array('statistics'), TRUE)) {
return 'The statistics module depends on the node module and has therefore been uninstalled.';
}
else {
return 'There was an error uninstalling the statistcs module.';
}
}
}