rendered paste bodyfunction dss_menu($may_cache){ $items = array(); if (!$may_cache){ $items[] = array ( 'path' => 'dss', 'title' => t('Water Resource Analysis'), 'access' => array('control dss'), 'callback' => 'dss_page', 'type' => MENU_NORMAL_ITEM ); } return $items;}function dss_actions_menu($may_cache) { $items = array(); $aid = is_numeric(arg(3)) ? arg(3) : NULL; if (!$may_cache){ drupal_add_css(drupal_get_path('module', 'dss_actions') .'/dss_actions.css'); $items[] = array( 'path' => 'dss/actions', 'title' => t('Actions'), 'callback' => 'actions_list', 'access' => user_access('control dss actions'), 'weight' => 0, 'type' => MENU_NORMAL_ITEM ); $items[] = array( 'path' => 'dss/actions/actions', 'title' => t('Actions'), 'access' => user_access('control dss actions'), 'callback' => 'actions_list', 'type' => MENU_NORMAL_ITEM ); $items[] = array( 'path' => 'dss/actions/types', 'title' => t('Actions Types'), 'access' => user_access('control dss actions'), 'callback' => 'actions_types_list', 'type' => MENU_NORMAL_ITEM ); $items[] = array( 'path' => 'dss/actions/actions/add', 'title' => t('add new action'), 'access' => user_access('control dss actions'), 'callback' => 'drupal_get_form', 'callback arguments' => 'actions_add', 'weight' => 1, 'type' => MENU_LOCAL_TASK ); $items[] = array( 'path' => 'dss/actions/actions/list', 'title' => t('list actions'), 'access'=> user_access('control dss actions'), 'callback' => 'actions_list', 'weight' => 0, 'type' => MENU_DEFAULT_LOCAL_TASK ); $items[] = array( 'path' => 'dss/actions/actions/'.$aid.'/edit', 'title' => t('edit action'), 'access' => user_access('control dss actions'), 'callback' => 'drupal_get_form', 'callback arguments' => 'actions_edit', 'type' => MENU_CALLBACK ); $items[] = array( 'path' => 'dss/actions/actions/'.$aid.'/remove', 'title' => t('remove action'), 'access' => user_access('control dss actions'), 'callback' => 'drupal_get_form', 'callback arguments' => 'actions_delete', 'type' => MENU_CALLBACK ); $items[] = array( 'path' => 'dss/actions/types/add', 'title' => t('add new action type'), 'access' => user_access('control dss actions'), 'callback' => 'drupal_get_form', 'callback arguments' => 'actions_types_add', 'weight' => 1, 'type' => MENU_LOCAL_TASK ); $items[] = array( 'path' => 'dss/actions/types/list', 'title' => t('list action types'), 'access'=> user_access('control dss actions'), 'callback' => 'actions_types_list', 'weight' => 0, 'type' => MENU_DEFAULT_LOCAL_TASK ); $items[] = array( 'path' => 'dss/actions/types/'.$aid.'/edit', 'title' => t('edit action type'), 'access' => user_access('control dss actions'), 'callback' => 'drupal_get_form', 'callback arguments' => 'actions_types_edit', 'type' => MENU_CALLBACK ); $items[] = array( 'path' => 'dss/actions/types/'.$aid.'/remove', 'title' => t('remove action type'), 'access' => user_access('control dss actions'), 'callback' => 'drupal_get_form', 'callback arguments' => 'actions_types_delete', 'type' => MENU_CALLBACK ); } return $items;}function dss_devms_menu($maycache){ $items = array(); $cid = is_numeric(arg(2)) ? arg(2) : NULL; if (!$maycache){ $items[] = array( 'path' => 'dss/devms', 'title' => t('Development Measures'), 'callback' => 'devms_list', 'access' => user_access('control dss Development Measures'), ); $items[] = array( 'path' => 'dss/devms/add', 'title' => t('Add'), 'access' => user_access('control dss Development Measures'), 'callback' => 'drupal_get_form', 'callback arguments' => 'devms_add', 'type' => MENU_LOCAL_TASK, ); $items[] = array( 'path' => 'dss/devms/list', 'title' => t('List'), 'access' => user_access('control dss Development Measures'), 'callback' => 'devms_list', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => 0 ); $items[] = array( 'path' => 'dss/devms/'.$cid.'/edit', 'title' => t('Edit Development Measure'), 'callback' => 'drupal_get_form', 'callback arguments' => 'devms_edit', 'access' => user_access('control dss Development Measures'), 'type' => MENU_CALLBACK ); $items[] = array( 'path' => 'dss/devms/'.$cid.'/del', 'title' => t('Remove Development Measure'), 'callback' => 'drupal_get_form', 'callback arguments' => 'devms_delete', 'access' => user_access('control dss Development Measures'), 'type' => MENU_CALLBACK ); } return $items;}function dss_results_menu($maycache){ $items = array(); if (!$maycache){ $items[] = array( 'path' => 'dss/results', 'title' => t('RESULTS'), 'callback' => 'dss_results_select', 'access' => user_access('get dss results'), 'type' => MENU_NORMAL_ITEM ); } return $items;}