Advertisement
DrupalCustom

MyModule

Jan 20th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.95 KB | None | 0 0
  1.  
  2.  
  3. function freeway_menu() {
  4.  
  5.   $items['admin/settings/freeway'] = array(
  6.     'title' => 'Freeway',
  7.     'description' => 'Freeway functionalities.',
  8.     'page callback' => 'drupal_get_form',
  9.     'page arguments' => array('freeway_admin_settings'),
  10.     'access arguments' => array('administer site configuration','translate content'),
  11.     'type' => MENU_NORMAL_ITEM,
  12.     'file' => 'freeway.admin.inc',
  13.   );
  14.  
  15.   /*
  16.   $items['admin/content/node-type/'. $type_url_str .'/sendfortranslation'] = array(
  17.     'title' => 'Send For Translation',
  18.     'type' => MENU_DEFAULT_LOCAL_TASK,
  19.   );
  20.  
  21.   $items['node/%node/sendfortranslation'] = array(
  22.     'title' => 'Send For Translation',
  23.     'page callback' => 'drupal_get_form',
  24.     'page arguments' => array('send_for_translation'),
  25.     'access callback' => 'node_access',
  26.     'access arguments' => array('update', 1),
  27.     'weight' => 1,
  28.     'file' => 'freeway.admin.inc',
  29.     'type' => MENU_LOCAL_TASK,
  30.   );
  31.   */   
  32.    
  33.   $items['admin/content/node-type/'. $type_url_str .'/createFreewayProject'] = array(
  34.     'title' => 'Create Freeway Project',
  35.     'type' => MENU_DEFAULT_LOCAL_TASK,
  36.   );
  37.    
  38.    
  39.  $items['user/%user/createFreewayProject'] = array(
  40.     'title' => 'Create Freeway Project',
  41.     'page callback' => 'drupal_get_form',
  42.     'page arguments' => array('create_freeway_project'),
  43.     'access callback' => 'node_access',
  44.     'access arguments' => array('update', 1),
  45.     'weight' => 1,
  46.     'file' => 'freeway.admin.inc',
  47.     'type' => MENU_LOCAL_TASK,
  48.   );
  49.  
  50.  
  51.     $items['admin/content/node-type/'. $type_url_str .'/freewayDashboard'] = array(
  52.     'title' => 'Freeway Dashboard',
  53.     'type' => MENU_DEFAULT_LOCAL_TASK,
  54.   );
  55.    
  56.  
  57.    $items['user/%user/freewayDashboard'] = array(
  58.     'title' => 'Freeway Dashboard',
  59.     'page callback' => 'drupal_get_form',
  60.     'page arguments' => array('freeway_dashboard'),
  61.     'access callback' => 'node_access',
  62.     'access arguments' => array('update', 1),
  63.     'weight' => 1,
  64.     'file' => 'freeway.admin.inc',
  65.     'type' => MENU_LOCAL_TASK,
  66.   );
  67.  
  68.      $items['user/%user/freewayDashboardDetails'] = array(
  69.     //'title' => 'Freeway Dashboard Details',
  70.     'page callback' => 'drupal_get_form',
  71.     'page arguments' => array('freeway_dashboard_details'),
  72.     'access callback' => 'node_access',
  73.     'access arguments' => array('update', 1),
  74.     'weight' => 1,
  75.     'file' => 'freeway.admin.inc',
  76.     //'type' => MENU_LOCAL_TASK,
  77.   );
  78.  
  79.  
  80.      $items['user/%user/freewayRetrieve'] = array(
  81.     //'title' => 'Freeway Retrieve',
  82.     'page callback' => 'drupal_get_form',
  83.     'page arguments' => array('freeway_retrieve'),
  84.     'access callback' => 'node_access',
  85.     'access arguments' => array('update', 1),
  86.     'weight' => 1,
  87.     'file' => 'freeway.admin.inc',    
  88.   );
  89.  
  90.    
  91.     $items['user/%user/freewayUserMapping'] = array(
  92.     'title' => 'Freeway User Mapping',
  93.     'page callback' => 'drupal_get_form',
  94.     'page arguments' => array('freeway_user_mapping'),
  95.     'access callback' => 'node_access',
  96.     'access arguments' => array('update', 1),
  97.     'weight' => 1,
  98.     'file' => 'freeway.admin.inc',
  99.     'type' => MENU_LOCAL_TASK,
  100.   );
  101.  
  102.   $items['user/%user/freewayGlobalUser'] = array(
  103.     'title' => 'Freeway Global User Mapping',
  104.     'page callback' => 'drupal_get_form',
  105.     'page arguments' => array('freeway_user_mapping_global'),
  106.     'access callback' => 'node_access',
  107.     'access arguments' => array('update', 1),
  108.     'weight' => 1,
  109.     'file' => 'freeway.admin.inc',
  110.     'type' => MENU_CALLBACK,
  111.   );
  112.  
  113.     $items['user/%user/freewayNonGlobalUser'] = array(
  114.     'title' => 'Freeway Non Global User Mapping',
  115.     'page callback' => 'drupal_get_form',
  116.     'page arguments' => array('freeway_user_mapping_non_global'),
  117.     'access callback' => 'node_access',
  118.     'access arguments' => array('update', 1),
  119.     'weight' => 1,
  120.     'file' => 'freeway.admin.inc',
  121.     'type' => MENU_CALLBACK,
  122.   );
  123.  
  124.  
  125.    
  126.   return $items;
  127. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement