You are here

function comment_perm_menu in Comment Permissions 5

Same name and namespace in other branches
  1. 6 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 7

Code

function comment_perm_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/content/comment_perm',
      'title' => t('Comment permissions'),
      'description' => t('Setup comment permissions by user role and by node type.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => 'comment_perm_admin_settings',
      'access' => user_access('administer site configuration'),
      'type' => MENU_NORMAL_ITEM,
    );
  }
  return $items;
}