You are here

protected function Notifications_Message_Template::default_text in Notifications 7

Default texts for this template, may need token replacement

Overrides Messaging_Message_Template::default_text

2 calls to Notifications_Message_Template::default_text()
Notifications_Node_Event_Template::default_text in notifications_content/notifications_content.inc
Default texts for this template, may need token replacement
Notifications_Taxonomy_Term_Create_Template::default_text in notifications_tags/notifications_tags.inc
Default texts for this template, may need token replacement
2 methods override Notifications_Message_Template::default_text()
Notifications_Node_Event_Template::default_text in notifications_content/notifications_content.inc
Default texts for this template, may need token replacement
Notifications_Taxonomy_Term_Create_Template::default_text in notifications_tags/notifications_tags.inc
Default texts for this template, may need token replacement

File

./notifications.template.inc, line 82
Drupal Notifications Framework - Templates

Class

Notifications_Message_Template
Message template. This should be able to produce a full message by itself

Code

protected function default_text($type, $options) {
  switch ($type) {
    case 'subject':
      return $this
        ->text_subject($options);
    case 'header':
      return $this
        ->text_header($options);
    case 'content':
      return $this
        ->text_content($options);
    case 'footer':
      return $this
        ->text_footer($options);
    case 'break':
      return array(
        '#type' => 'messaging_break',
      );
    default:
      return parent::default_text($type, $options);
  }
}