public function MessageNotifierBase::send in Message Notify 7.2
Entry point to send and process a message.
Return value
TRUE or FALSE based on delivery status.
Overrides MessageNotifierInterface::send
File
- plugins/
notifier/ abstract.inc, line 73
Class
- MessageNotifierBase
- An abstract implementation of MessageNotifierInterface.
Code
public function send() {
$message = $this->message;
$output = array();
foreach ($this->plugin['view_modes'] as $view_mode => $value) {
$content = $message
->buildContent($view_mode);
$output[$view_mode] = render($content);
}
$result = $this
->deliver($output);
$this
->postSend($result, $output);
return $result;
}