You are here

function views_gantt_menu in Views Gantt 7.2

Same name and namespace in other branches
  1. 7 views_gantt.module \views_gantt_menu()

Implements hook_menu().

File

./views_gantt.module, line 42
Module file for Views Gantt

Code

function views_gantt_menu() {
  $items = array();
  $items['views_gantt/data.json'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'views_gantt_data_json',
    'access arguments' => array(
      'access content',
    ),
  );

  // @todo Add permission to update tasks from Gantt chart?
  $items['views_gantt/update'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'views_gantt_update',
    'access arguments' => array(
      'access content',
    ),
  );
  $items['gantt/redirect/%/%'] = array(
    'page callback' => 'views_gantt_redirect_page',
    'page arguments' => array(
      2,
      3,
    ),
    'access callback' => 'views_gantt_redirect_access',
    'access arguments' => array(
      2,
      3,
    ),
  );
  return $items;
}