Advertisement
vishnu3006

Untitled

Sep 22nd, 2011
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.10 KB | None | 0 0
  1. // freeway.module.
  2.  
  3. function freeway_menu() {
  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'),
  10. 'type' => MENU_NORMAL_ITEM,
  11. 'file' => 'freeway.admin.inc',
  12. );
  13.  
  14. $items['admin/content/node-type/'. $type_url_str .'/sendfortranslation'] = array(
  15. 'title' => 'Send For Translation',
  16. 'type' => MENU_DEFAULT_LOCAL_TASK,
  17.     );
  18.  
  19.  $items['node/%node/sendfortranslation'] = array(
  20.     'title' => 'Send For Translation',
  21.     'page callback' => 'send_for_translation',
  22.     'page arguments' => array(1),
  23.     'access callback' => 'node_access',
  24.     'access arguments' => array('update', 1),
  25.     'weight' => 1,
  26.     'file' => 'freeway.admin.inc',
  27.     'type' => MENU_LOCAL_TASK,
  28.   );
  29.    
  30. return $items;
  31. }
  32.  
  33.  
  34.  
  35. //freeway.admin.inc
  36.  
  37.  
  38.  
  39. function send_for_translation($node) {
  40.  
  41.   echo ("Hello Send To ranslation ");
  42.   // drupal_set_title(check_plain($node->title));
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement