function notifications_content_comment_cid2title in Notifications 6.4
Mapping from comment cid to title
1 string reference to 'notifications_content_comment_cid2title'
- notifications_content_notifications in notifications_content/
notifications_content.module - Implementation of hook_notifications()
File
- notifications_content/
notifications_content.module, line 807 - Subscriptions to content events
Code
function notifications_content_comment_cid2title($cid, $html = FALSE) {
if ($comment = notifications_content_comment_load($cid)) {
return $html ? l($comment->subject, "node/{$comment->nid}", array(
'fragment' => "comment-{$comment->cid}",
)) : check_plain($comment->subject);
}
else {
return t('Not found');
}
}