function _comment_perm_access_denied_message in Comment Permissions 5
Same name and namespace in other branches
- 6 comment_perm.module \_comment_perm_access_denied_message()
- 7 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 173
Code
function _comment_perm_access_denied_message() {
global $user;
if ($user->uid == 0) {
return variable_get('comment_perm_message_anon', 'Login or register to post comments!');
}
else {
return variable_get('comment_perm_message_reg', "We're sorry, but you can't post comments here!");
}
}