You are here

protected function Notifications_Message_Template::text_footer in Notifications 7

Footer text

1 call to Notifications_Message_Template::text_footer()
Notifications_Message_Template::default_text in ./notifications.template.inc
Default texts for this template, may need token replacement

File

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

Class

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

Code

protected function text_footer($options) {
  return array(
    '#tokens' => TRUE,
    //'from' => t('This is an automatic message from !site_name', array('!site_name' => variable_get('site_name', 'Drupal')), $options),

    // For links add markup and plaintext alternatives
    'from' => array(
      '#type' => 'messaging_link',
      '#text' => t('This is an automatic message from [site:name],', array(), $options),
      '#url' => '[site:url]',
    ),
    'unsubscribe' => array(
      '#type' => 'messaging_link',
      '#text' => t('You can unsubscribe at', array(), $options),
      '#url' => '[user:unsubscribe-url]',
    ),
  );
}