function admin_content_notification_get_email_body in Admin Content Notification 7
Same name and namespace in other branches
- 7.2 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()
File
- ./
admin_content_notification.module, line 64 - Module admin_content_notification file.
Code
function admin_content_notification_get_email_body($node) {
global $base_url;
$user = user_load($node->uid);
$variables = array(
'%posted_by' => $user->name,
'%content_link' => l($node->title, $base_url . '/node/' . $node->nid),
);
return t(variable_get('admin_content_notification_email_body', 'A new content has been submitted on your site. <br/> Submitted by : %posted_by <br/> New content link : %content_link'), $variables);
}