You are here

function subscriptions_content_mailkeys in Subscriptions 5.2

Same name and namespace in other branches
  1. 6 subscriptions_content.module \subscriptions_content_mailkeys()

Provide mailkeys for mail_edit. Implementation of hook_mailkeys().

The basic format is subscriptions dash module dash field. If the possible values can be enumerated, like node types, profile fields, etc. then we add that too with a dash.

File

./subscriptions_content.module, line 884
Subscriptions to content events

Code

function subscriptions_content_mailkeys() {
  include_once drupal_get_path('module', 'subscriptions_mail') . '/subscriptions_mail.templates.inc';
  $mailkeys = array(
    SUBSCRIPTIONS_DIGEST_MAILKEY,
    'subscriptions-node-nid',
    'subscriptions-node-tid',
  );
  foreach (array_keys(node_get_types()) as $type) {
    $mailkeys[] = 'subscriptions-node-type-' . $type;
  }
  return $mailkeys;
}