function Notifications_Message_Template::get_objects in Notifications 7
Get objects as Drupal objects (Removing Notifications object wrapper)
Overrides Messaging_Template::get_objects
File
- ./
notifications.template.inc, line 54 - Drupal Notifications Framework - Templates
Class
- Notifications_Message_Template
- Message template. This should be able to produce a full message by itself
Code
function get_objects() {
$objects = array();
foreach (parent::get_objects() as $type => $object) {
$token_type = is_a($object, 'Notifications_Object') ? $object
->get_token_type() : $type;
$object = is_a($object, 'Notifications_Object') ? $object
->get_object() : $object;
$objects[$token_type] = $object;
}
return $objects;
}