Commit c4edd3bd authored by webchick's avatar webchick

Issue #2168101 by xjm: UpdateModuleHandler does not follow coding standards...

Issue #2168101 by xjm: UpdateModuleHandler does not follow coding standards for switch statements and is hard to read.
parent 9becaf1b
......@@ -35,6 +35,7 @@ public function getImplementations($hook) {
// Allow logging.
case 'watchdog':
return parent::getImplementations($hook);
// Forms and pages do not render without the basic elements defined in
// system_element_info().
case 'element_info':
......@@ -44,6 +45,7 @@ public function getImplementations($hook) {
// user_update_8011() uses public:// to create the image style directory.
case 'stream_wrappers':
return array('system');
// This is called during rebuild to find testing themes.
case 'system_theme_info':
// Those are needed by user_access() to check access on update.php.
......@@ -51,10 +53,12 @@ public function getImplementations($hook) {
case 'entity_load':
case 'user_role_load':
return array();
// t() in system_stream_wrappers() needs this. Other schema calls aren't
// supported.
case 'schema':
return array('locale');
throw new \LogicException("Invoking hooks $hook is not supported during updates");
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