function _notify_content in Notify 6
Same name and namespace in other branches
- 8 notify.module \_notify_content()
- 5.2 notify.module \_notify_content()
- 5 notify.module \_notify_content()
- 7 notify.module \_notify_content()
- 1.0.x notify.module \_notify_content()
Formatting of outgoing mail, taken from mail.inc, part of project.module
1 call to _notify_content()
- _notify_send in ./
notify.module - Helper function to send the notification email.
File
- ./
notify.module, line 419 - Notify module sends email digests of new content and comments.
Code
function _notify_content($node, $notify) {
static $i = 0;
switch ($notify->teasers) {
case 0:
return;
case 1:
$txt = check_markup($node->teaser, $node->format, FALSE);
break;
case 2:
$txt = check_markup($node->body, $node->format, FALSE);
}
return drupal_html_to_text($txt);
}