From 53f119fe7aca5cbe1af5298ababd4adc3a96828e Mon Sep 17 00:00:00 2001 From: willzyx Date: Sun, 29 Oct 2017 11:44:19 +0100 Subject: [PATCH] Custom view mode settings are overridden on every feature revert --- message_notify.module | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/message_notify.module b/message_notify.module index bc07651..5a7631b 100644 --- a/message_notify.module +++ b/message_notify.module @@ -107,15 +107,11 @@ function message_notify_field_attach_create_bundle($entity_type, $bundle) { $visible = array('visible' => TRUE, 'weight' => 0); $hidden = array('visible' => FALSE, 'weight' => 0); - $display['message__message_text__0'] = array( - 'message_notify_email_subject' => $visible, - 'message_notify_email_body' => $hidden, - ); + $display['message__message_text__0']['message_notify_email_subject'] = $visible; + $display['message__message_text__0']['message_notify_email_body'] = $hidden; - $display['message__message_text__1'] = array( - 'message_notify_email_subject' => $hidden, - 'message_notify_email_body' => $visible, - ); + $display['message__message_text__1']['message_notify_email_subject'] = $hidden; + $display['message__message_text__1']['message_notify_email_body'] = $visible; field_bundle_settings('message', $bundle, $bundle_settings); }