public function Notifications_Message::build in Notifications 6.4
Check parameters and go for alter hook
File
- includes/
notifications_message.class.inc, line 34 - Drupal Notifications Framework - Default class file
Class
- Notifications_Message
- Wrapper for Notifications messages
Code
public function build() {
if (empty($this->built)) {
// Provide a specific notifications alter hook
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);
}
return parent::build();
}