You are here

function hook_subscriptions_get_mailvars in Subscriptions 6

Provide a list of token names and actual values for building notifications for a given object.

Related topics

1 function implements hook_subscriptions_get_mailvars()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

subscriptions_cck_subscriptions_get_mailvars in ./subscriptions_cck.module
Implementation of hook_subscriptions_get_mailvars().
1 invocation of hook_subscriptions_get_mailvars()
_subscriptions_mail_cron in ./subscriptions_mail.cron.inc
Implementation of hook_cron().

File

docs/docs.php, line 52
This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.

Code

function hook_subscriptions_get_mailvars($object) {
  $mailvars = array();

  // Check whether it's a node!
  if (isset($node->nid)) {
    $mailvars['!myvariable'] = $node->nid;
  }
  return $mailvars;
}