function notifications_digest_group in Notifications 6.3
Same name and namespace in other branches
- 5 notifications.cron.inc \notifications_digest_group()
- 6.4 notifications_digest/notifications_digest.module \notifications_digest_group()
- 6 notifications.cron.inc \notifications_digest_group()
- 6.2 notifications.cron.inc \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
File
- notifications_digest/
notifications_digest.module, line 286 - Notifications message digest
Code
function notifications_digest_group($digest, $part, $method) {
static $texts = array();
$type = $digest['type'];
$value = $digest['value'];
if (!isset($texts[$type][$value][$part][$method])) {
if ($line = notifications_message_part('digest', $part, $method, array(
$type,
$digest['field'],
), $digest['module'])) {
$output = $line;
}
else {
$output = '';
}
$texts[$type][$value][$part][$method] = $output;
}
return $texts[$type][$value][$part][$method];
}