You are here

function comment_perm_menu in Comment Permissions 7.2

Same name and namespace in other branches
  1. 5 comment_perm.module \comment_perm_menu()
  2. 6 comment_perm.module \comment_perm_menu()
  3. 7 comment_perm.module \comment_perm_menu()

Implements hook_menu().

File

./comment_perm.module, line 44
Control commenting permissions by role and by node type.

Code

function comment_perm_menu() {
  $items = array();
  $items['admin/config/system/comment_perm'] = array(
    'title' => 'Comment permissions',
    'description' => 'Setup comment permissions by user role and by node type.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'comment_perm_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'comment_perm.admin.inc',
  );
  return $items;
}