( // Type may be node, user, etc... * 'oid' => ( // One for each object, may be nid, uid... * 'group' => Group title and footer * 'line' => Array of lines, one for each related event * ) * ) * @return * Structured array with 'header', 'footer', and multiple text lines */ function theme_notifications_digest_short_body($text, $list) { $body['header'] = $text['header']; foreach ($list as $type => $objects) { foreach ($objects as $oid => $data) { $body['content'][] = $data['group']['title']; foreach ($data['line'] as $line) { $body['content'][] = theme('notifications_digest_short_line', $line, $data['group']); } $body['content'][] = $data['group']['footer']; } } $body['footer'] = $text['footer']; return $body; } /** * Single line of text */ function theme_notifications_digest_short_line($line, $group) { return '- ' . $line; } /** * Build the message body for long digests. * * Actually we do nothing here, but it will be themeable. */ function theme_notifications_digest_long_body($header, $content, $footer) { return array('header' => $header, 'content' => $content, 'footer' => $footer); }