You are here

function subscriptions_mail_mailkeys in Subscriptions 2.0.x

Same name and namespace in other branches
  1. 6 subscriptions_mail.module \subscriptions_mail_mailkeys()
  2. 7 subscriptions_mail.module \subscriptions_mail_mailkeys()

Implements hook_mailkeys().

Provides mailkeys for mail_edit.

Return value

array

File

subscriptions_mail/subscriptions_mail.module, line 126
Subscriptions module mail gateway.

Code

function subscriptions_mail_mailkeys() {
  $hook = 'subscriptions';
  $mailkeys = array();
  foreach (module_implements($hook) as $module) {
    $function = $module . '_' . $hook;
    $result = $function('mailkeys');
    if (isset($result)) {
      $mailkeys += $result;
    }
  }
  $mailkeys['digest'] = t('Digest subscriptions notifications');
  $mailkeys['.DEFAULT'] = t('Default !Subscriptions template', array(
    '!Subscriptions' => 'Subscriptions',
  ));
  return $mailkeys;
}