You are here

function notifications_digest_group in Notifications 6.4

Same name and namespace in other branches
  1. 5 notifications.cron.inc \notifications_digest_group()
  2. 6 notifications.cron.inc \notifications_digest_group()
  3. 6.2 notifications.cron.inc \notifications_digest_group()
  4. 6.3 notifications_digest/notifications_digest.module \notifications_digest_group()

Get text parts for digests.

Useful to get the group title and footer given some kind of digesting

Parameters

$digest: Digest information (which object and field we use)

$part: Template part: header, footer...

$method: Send method

1 call to notifications_digest_group()
notifications_digest_build_short in notifications_digest/notifications_digest.module
Digest multiple events in a single message, short format.

File

notifications_digest/notifications_digest.module, line 286
Notifications digest module

Code

function notifications_digest_group($digest_info, $part, $method, $language) {
  static $texts = array();
  $type = $digest_info['type'];
  $value = $digest_info['value'];
  if (!isset($texts[$type][$value][$part][$method])) {
    $texts[$type][$value][$part][$method] = notifications_digest_message_part($part, $method, $type, $digest_info['field'], $language, $digest_info['module']);
  }
  return $texts[$type][$value][$part][$method];
}