Same name and namespace in other branches
  1. 4.6.x modules/comment.module \comment_perm()
  2. 4.7.x modules/comment.module \comment_perm()
  3. 5.x modules/comment/comment.module \comment_perm()

Implementation of hook_perm().

File

modules/comment/comment.module, line 273
Enables users to comment on published content.

Code

function comment_perm() {
  return array(
    'access comments',
    'post comments',
    'administer comments',
    'post comments without approval',
  );
}