You are here

public function Notifications_Node_Insert_Template::digest_line in Notifications 7

New nodes can be digested by type or by author

File

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

Class

Notifications_Node_Insert_Template
Template for node inserts

Code

public function digest_line($field, $options = array()) {
  switch ($field) {
    case 'node:type':
      return t('[node:title] by [author-name].', array(), $options);
    case 'author:uid':
      return t('New [node:type-name]: [node:title]', array(), $options);
  }
}