function _comment_perm_access_denied_message in Comment Permissions 7
Same name and namespace in other branches
- 5 comment_perm.module \_comment_perm_access_denied_message()
- 6 comment_perm.module \_comment_perm_access_denied_message()
2 calls to _comment_perm_access_denied_message()
- comment_perm_comment in ./
comment_perm.module - Implementation of hook_comment().
- comment_perm_form_alter in ./
comment_perm.module - Implementation of hook_form_alter().
File
- ./
comment_perm.module, line 276 - Module to control commenting permissions by role and by node type.
Code
function _comment_perm_access_denied_message($nid = null) {
global $user;
if ($user->uid == 0) {
return theme('comment_post_forbidden', node_load($nid));
}
else {
return variable_get('comment_perm_message_reg', t("We're sorry, but you can't post comments here!"));
}
}