You are here

function comment_og_menu in Comment OG 6

Implementation of hook_menu().

File

./comment_og.module, line 5

Code

function comment_og_menu() {
  $items['admin/og/comment_og'] = array(
    'title' => 'Organic groups comments configuration',
    'description' => 'Choose how group administrators can edit comments',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'comment_og_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
  );

  // allows group admins to edit comments
  $items['comment_og/edit'] = array(
    'title' => 'Edit comment',
    'page callback' => 'comment_og_comment_edit',
    'page arguments' => array(
      2,
      3,
    ),
    'access arguments' => array(
      'post comments',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}