You are here

function subscriptions_content_data in Subscriptions 7

Same name and namespace in other branches
  1. 2.0.x subscriptions_content/subscriptions_content.module \subscriptions_content_data()

Prepares the $data array for resolving tokens.

Parameters

array $data: Array of data to pass to drupal_mail() and ultimately hook_tokens().

object|array $node: Node object used to fill $mailvars.

array $queue_item: Subscriptions queue item.

1 call to subscriptions_content_data()
subscriptions_taxonomy_data in ./subscriptions_taxonomy.module
Provides the data for resolving tokens.
2 string references to 'subscriptions_content_data'
subscriptions_content_subscriptions in ./subscriptions_content.module
Implements hook_subscriptions().
subscriptions_og_subscriptions in contrib/subscriptions_og/subscriptions_og.module
Implements hook_subscriptions().

File

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

Code

function subscriptions_content_data(array &$data, $node, array $queue_item) {
  $data[$data['object_type'] = 'node'] = is_array($node) ? (object) $node : $node;
  subscriptions_data($data, $queue_item);
}