From a6b71e4b4b17f8363f9ebcf2f8eecbdd3e786031 Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Thu, 20 Oct 2022 15:37:53 -0400
Subject: [PATCH] ISTWCMS-5880: finally fixing update hook for media

---
 uw_cfg_common.install | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/uw_cfg_common.install b/uw_cfg_common.install
index 7af7ee80..f139bc0b 100644
--- a/uw_cfg_common.install
+++ b/uw_cfg_common.install
@@ -571,6 +571,7 @@ function uw_cfg_common_update_9106(&$sandbox) {
     'field.storage.node.field_uw_media_width',
     'field.storage.node.field_uw_slide_speed',
     'field.storage.node.field_uw_transition_speed',
+    'field.storage.node.field_uw_autoplay',
     'field.storage.node.field_uw_text_overlay_style',
   ];
 
@@ -610,6 +611,8 @@ function uw_cfg_common_update_9106(&$sandbox) {
       'field.field.node.' . $id . '.field_uw_banner',
       'field.field.node.' . $id . '.field_uw_type_of_media',
       'field.field.node.' . $id . '.field_uw_media_width',
+      'field.field.node.' . $id . '.field_uw_slide_speed',
+      'field.field.node.' . $id . '.field_uw_autoplay',
       'field.field.node.' . $id . '.field_uw_text_overlay_style',
       'field.field.node.' . $id . '.field_uw_transition_speed',
     ];
@@ -658,6 +661,7 @@ function uw_cfg_common_update_9106(&$sandbox) {
       $node->field_uw_media_width = 'uw_lbs_full_width';
       $node->field_uw_slide_speed = 7000;
       $node->field_uw_transition_speed = 400;
+      $node->field_uw_autoplay = TRUE;
       $node->field_uw_text_overlay_style = 'full-width';
 
       // If the content type does not have media yet,
-- 
GitLab