Hello there,
thanks for this great module!
But I have a problem with the log of sent mails. According to Message Notify Example Module I pass an $options array to message_notify_send_message():
$message = message_create($message_type, array('uid' => $user->uid));
$wrapper = entity_metadata_wrapper('message', $message);
$options = array(
'rendered fields' => array(
'message_notify_email_subject' => 'field_mail_rendered_subject',
'message_notify_email_body' => 'field_mail_rendered_body',
),
);
message_notify_send_message($message, $options);
If I want to render the two fields with Views, it will just render the content of the fields as plain text with all p- or a-tags and so on. The problem is at line 126 of abstract.inc where the set() method of EntityWrapper is called. There is just one argument passed, so all HTML tags are converted to entities (see: this post).
But how can I achive, that my fields have a format in the wrapper, so that the if-statement at line 125 is not passed and the format will be added on line 130?
I would welcome every advise!
Thanks Daniel
Comments
Comment #1
DanielZ123 commentedsolved it.
Applied this patch: https://www.drupal.org/node/2108283
And enabled 'text filter' in the field settings. Now Views renders the content correctly