Upgraded imagemagick and manually altered pdf to image module to handle changes....
[yaffs-website] / web / modules / contrib / imagemagick / imagemagick.install
index 12aa0c05c5d0eecbeddc192faa7fcb2bef72daa8..1b7800553e3f860169d08066a39114acfa699131 100644 (file)
@@ -36,30 +36,27 @@ function imagemagick_requirements($phase) {
 }
 
 /**
- * @addtogroup updates-8.x-1.0-alpha
- * @{
+ * Enable file_mdm module.
  */
-
-/**
- * Adds the 'locale' config setting.
- */
-function imagemagick_update_8001() {
-  $config_factory = \Drupal::configFactory();
-  $setting = $config_factory->getEditable('imagemagick.settings')
-    ->set('locale', 'en_US.UTF-8')
-    ->save(TRUE);
+function imagemagick_update_8201() {
+  \Drupal::service('module_installer')->install([
+    'file_mdm',
+  ]);
 }
 
 /**
- * Adds the 'log_warnings' config setting.
+ * Adds the 'prepend_pre_source' config setting.
  */
-function imagemagick_update_8002() {
+function imagemagick_update_8202() {
   $config_factory = \Drupal::configFactory();
   $setting = $config_factory->getEditable('imagemagick.settings')
-    ->set('log_warnings', TRUE)
+    ->set('prepend_pre_source', FALSE)
     ->save(TRUE);
 }
 
 /**
- * @} End of "addtogroup updates-8.x-1.0-alpha".
+ * Clear caches to discover service changes.
  */
+function imagemagick_update_8203() {
+  // Empty function.
+}