function admin_content_notification_send_email in Admin Content Notification 7.2
Same name and namespace in other branches
- 8 admin_content_notification.module \admin_content_notification_send_email()
- 8.2 admin_content_notification.module \admin_content_notification_send_email()
Send email notification.
Parameters
Object $node: Node Object.
bool $is_new: True if node is new.
2 calls to admin_content_notification_send_email()
File
- ./
admin_content_notification.module, line 85 - Module admin_content_notification file.
Code
function admin_content_notification_send_email($node, $is_new = FALSE) {
if (in_array($node->type, variable_get('admin_content_notification_node_types', array()))) {
drupal_mail('admin_content_notification', 'notification', admin_content_notification_get_admin_email(), language_default(), array(
'message' => admin_content_notification_get_email_body($node, $is_new),
'subject' => admin_content_notification_get_email_subject($node, $is_new),
));
}
}