comment_permission

Versions
7
comment_permission()

Implements hook_permission().

Code

modules/comment/comment.module, line 275

<?php
function comment_permission() {
  return array(
    'administer comments' => array(
      'title' => t('Administer comments and comment settings'),
    ),
    'access comments' => array(
      'title' => t('View comments'),
    ),
    'post comments' => array(
      'title' => t('Post comments with approval'),
    ),
    'post comments without approval' => array(
      'title' => t('Post comments without approval'),
    ),
  );
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.