protected function Notifications_Message::do_build in Notifications 7
Check parameters and go for alter hook
Overrides Messaging_Message::do_build
File
- ./
notifications.message.inc, line 33 - Drupal Notifications Framework - Default class file
Class
- Notifications_Message
- Wrapper for Notifications messages
Code
protected function do_build() {
parent::do_build();
drupal_alter('notifications_message', $this);
// Clean up Notifications objects so we don't move too much data around (Sometimes the full object gets serialized)
unset($this->events);
unset($this->events_subscriptions);
unset($this->subscriptions);
unset($this->text_parts);
// The message must be built, without errors and not for discarding
return $this
->check_status();
}