You are here

function og_views_menu in Organic groups 6.2

Same name and namespace in other branches
  1. 6 modules/og_views/og_views.module \og_views_menu()

Implementation of hook_menu().

File

modules/og_views/og_views.module, line 6

Code

function og_views_menu() {

  // This exists because I can't easily restrict access based on pictures_enabled using Views.
  $items['og/users/%node/faces'] = array(
    'title' => 'Faces',
    'page callback' => 'og_views_users_faces',
    'page arguments' => array(
      'og_members_faces',
      'default',
      2,
    ),
    'type' => MENU_LOCAL_TASK,
    'access callback' => 'og_menu_access_picture',
    'access arguments' => array(
      2,
    ),
  );

  // Group feed
  $items['node/%node/feed'] = array(
    'page callback' => 'og_views_feed',
    'page arguments' => array(
      1,
    ),
    'title callback' => 'node_page_title',
    'title arguments' => array(
      1,
    ),
    'type' => MENU_CALLBACK,
    'access callback' => 'node_access',
    'access arguments' => array(
      'view',
      1,
    ),
  );
  return $items;
}