public function Messaging_Message_Text::set_format in Messaging 7
Set text format, just change separator
Overrides Messaging_Message_Render::set_format
File
- ./
messaging.text.inc, line 93 - Basic message templates and theming
Class
- Messaging_Message_Text
- Very simple template with plain subject, header, content, footer texts
Code
public function set_format($format) {
$this->format = $format;
switch ($this->format) {
case MESSAGING_FORMAT_PLAIN:
$this
->set_option('linebreak', "\n");
break;
case MESSAGING_FORMAT_HTML:
$this
->set_option('linebreak', '<br />');
break;
}
return $this;
}