You are here

protected function Messaging_Message_Template::default_text in Messaging 7

Default texts for this template, may need token replacement

Overrides Messaging_Template::default_text

File

messaging_template/messaging_template.inc, line 483
Drupal Messaging Framework - Text filtering functions

Class

Messaging_Message_Template
Template for a full message (subject, body, etc..)

Code

protected function default_text($type, $options) {
  switch ($type) {
    case 'subject':
      return array(
        '#tokens' => TRUE,
        '#markup' => t('Message from [site:name]', array(), $options),
      );
    case 'footer':
      return array(
        '#type' => 'messaging_link',
        '#tokens' => TRUE,
        '#text' => t('Message from [site:name]', array(), $options),
        '#url' => '[site:url]',
      );
    default:
      return parent::default_text($type, $options);
  }
}