You are here

function Notifications_Node_Comment_Template::default_text in Notifications 7

Default texts for this template, may need token replacement

Overrides Notifications_Node_Event_Template::default_text

File

notifications_content/notifications_content.inc, line 328
Drupal Notifications Framework - Default class file

Class

Notifications_Node_Comment_Template
Template for node comments

Code

function default_text($type, $options) {
  switch ($type) {
    case 'subject':
      return array(
        '#tokens' => TRUE,
        '#markup' => t('Comment for [node:type-name]: [node:title]', array(), $options),
      );
    case 'content':
      return array(
        '#tokens' => TRUE,
        'header' => t('Comment by [comment:name]: [comment:title]', array(), $options),
        'content' => '[comment:body]',
        'footer' => t('Read more [comment:url]', array(), $options),
      );
    case 'digest':
      return array(
        '#tokens' => TRUE,
        'title' => '[node:title]',
        'more' => t('Read more [node:url]', array(), $options),
      );
    default:
      return parent::default_text($type, $options);
  }
}