Advertisement
DrupalCustom

translate error

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