You are here

function views_gantt_menu in Views Gantt 7

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

Implements hook_menu().

File

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

Code

function views_gantt_menu() {
  $items = array();
  $items['views_gantt/project.xml'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'views_gantt_load_xml',
    'access callback' => TRUE,
  );

  // @todo Add permission to update tasks from Gantt chart?
  $items['views_gantt/update/%'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'views_gantt_update_tasks',
    'page arguments' => array(
      2,
    ),
    'access callback' => TRUE,
  );
  return $items;
}