Active
Project:
Notifications
Version:
7.x-1.x-dev
Component:
Notifications
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2012 at 00:23 UTC
Updated:
19 Jan 2012 at 01:05 UTC
Hi folks,
I want the email notification for an inserted node to include a specific view mode of the node itself (i.e. the "notifications" view mode).
I've looked at making a module that hooks into notifications_notifications($op) and extends Notifications_Node_Insert_Template. However, all I can do is edit the text & tokens which are returned by the "default_text" function. Even the $events and $subscriptions variables are inaccessible as they are protected. So is there any way of returning a full node? I've been banging my head about this and would love to get any ideas on how to do this.
Thanks!
JP
Comments
Comment #1
pereljon commentedGetting close using the get_objects to get access to the node, node_view to get the view mode, and drupal_render to render. Just need to figure out how to make the notification be html instead of plain text!