diff --git a/core/modules/system/system.install b/core/modules/system/system.install index 9629024..97259e1 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -1908,23 +1908,13 @@ function system_update_8019() { } /** - * Enable the Actions module without re-installing its database schema. + * Enable the Actions module. */ function system_update_8020() { - // Reset the module data so that the actions module appears in the list. - drupal_static_reset('system_rebuild_module_data'); - system_rebuild_module_data(); - - // Actions is now in the system table, so we can now enable the module without - // re-installing the schema. - db_update('system') - ->fields(array( - 'status' => 1, - 'schema_version' => 0, - )) - ->condition('type', 'module') - ->condition('name', 'actions') - ->execute(); + // Add the module to the {system} table. + update_module_add_to_system(array('actions')); + // Enable the module without re-installing the schema. + update_module_enable(array('actions')); } /**