function admin_content_notification_get_email_body in Admin Content Notification 7.2
Same name and namespace in other branches
- 7 admin_content_notification.module \admin_content_notification_get_email_body()
Get Email Body.
Parameters
Object $node: Node Object.
Return value
string Email body.
1 call to admin_content_notification_get_email_body()
- admin_content_notification_send_email in ./
admin_content_notification.module - Send email notification.
File
- ./
admin_content_notification.module, line 113 - Module admin_content_notification file.
Code
function admin_content_notification_get_email_body($node, $is_new) {
global $base_url;
$user = user_load($node->uid);
$variables = array(
'!posted_by' => $user->name,
'!content_link' => l($node->title, $base_url . '/node/' . $node->nid),
'!content_title' => $node->title,
'!content_type' => $node->type,
' !action' => $is_new ? 'posted' : 'updated',
);
return t(variable_get('admin_content_notification_email_body', 'A new content has been submitted on your site. <br/> Submitted by : !posted_by <br/> Content link : !content_link'), $variables);
}