vishnu3006

Module_for_creatFreeway

Oct 12th, 2011
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.65 KB | None | 0 0
  1. <?php
  2. // $Id$
  3.  
  4. /**
  5.   * @file
  6.   * Lets users utilize freeway
  7.   *
  8.   */
  9.  
  10. /**
  11. * Implementation of hook_menu().
  12. */
  13. function freeway_menu() {
  14.   $items['admin/settings/freeway'] = array(
  15.     'title' => 'Freeway',
  16.     'description' => 'Freeway functionalities.',
  17.     'page callback' => 'drupal_get_form',
  18.     'page arguments' => array('freeway_admin_settings'),
  19.     'access arguments' => array('administer site configuration'),
  20.     'type' => MENU_NORMAL_ITEM,
  21.     'file' => 'freeway.admin.inc',
  22.   );
  23.  
  24.   $items['admin/content/node-type/'. $type_url_str .'/sendfortranslation'] = array(
  25.     'title' => 'Send For Translation',
  26.     'type' => MENU_DEFAULT_LOCAL_TASK,
  27.   );
  28.  
  29.   $items['node/%node/sendfortranslation'] = array(
  30.     'title' => 'Send For Translation',
  31.     'page callback' => 'drupal_get_form',
  32.     'page arguments' => array('send_for_translation'),
  33.     'access callback' => 'node_access',
  34.     'access arguments' => array('update', 1),
  35.     'weight' => 1,
  36.     'file' => 'freeway.admin.inc',
  37.     'type' => MENU_LOCAL_TASK,
  38.   );
  39.    
  40.    
  41.   $items['admin/content/node-type/'. $type_url_str .'/createFreewayProject'] = array(
  42.     'title' => 'Create Freeway Project',
  43.     'type' => MENU_DEFAULT_LOCAL_TASK,
  44.   );
  45.    
  46.    
  47.  $items['node/%node/createFreewayProject'] = array(
  48.     'title' => 'Create Freeway Project',
  49.     'page callback' => 'drupal_get_form',
  50.     'page arguments' => array('create_freeway_project'),
  51.     'access callback' => 'node_access',
  52.     'access arguments' => array('update', 1),
  53.     'weight' => 1,
  54.     'file' => 'freeway.admin.inc',
  55.     'type' => MENU_LOCAL_TASK,
  56.   );
  57.    
  58.    
  59.    
  60.    
  61.    
  62.    
  63.    
  64.    
  65.    
  66.   return $items;
  67. }
  68.  
  69.  
  70.  
  71.  
Add Comment
Please, Sign In to add comment