You are here

function Notifications_Node_Insert_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 274
Drupal Notifications Framework - Default class file

Class

Notifications_Node_Insert_Template
Template for node inserts

Code

function default_text($type, $options) {
  switch ($type) {
    case 'subject':
      return array(
        '#tokens' => TRUE,
        '#markup' => t('New [node:type-name]: [node:title]', array(), $options),
      );
    default:
      return parent::default_text($type, $options);
  }
}