You are here

function comment_perm_menu in Comment Permissions 6

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

Implementation of hook_menu().

File

./comment_perm.module, line 11
Module to control commenting permissions by role and by node type.

Code

function comment_perm_menu() {
  $items = array();
  $items['admin/content/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;
}