Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // $Id$
- /**
- * @file
- * Lets users utilize freeway
- *
- */
- /**
- * Implementation of hook_menu().
- */
- function freeway_menu() {
- $items['admin/settings/freeway'] = array(
- 'title' => 'Freeway',
- 'description' => 'Freeway functionalities.',
- 'page callback' => 'drupal_get_form',
- 'page arguments' => array('freeway_admin_settings'),
- 'access arguments' => array('administer site configuration'),
- 'type' => MENU_NORMAL_ITEM,
- 'file' => 'freeway.admin.inc',
- );
- $items['admin/content/node-type/'. $type_url_str .'/sendfortranslation'] = array(
- 'title' => 'Send For Translation',
- 'type' => MENU_DEFAULT_LOCAL_TASK,
- );
- $items['node/%node/sendfortranslation'] = array(
- 'title' => 'Send For Translation',
- 'page callback' => 'drupal_get_form',
- 'page arguments' => array('send_for_translation'),
- 'access callback' => 'node_access',
- 'access arguments' => array('update', 1),
- 'weight' => 1,
- 'file' => 'freeway.admin.inc',
- 'type' => MENU_LOCAL_TASK,
- );
- $items['admin/content/node-type/'. $type_url_str .'/createFreewayProject'] = array(
- 'title' => 'Create Freeway Project',
- 'type' => MENU_DEFAULT_LOCAL_TASK,
- );
- $items['node/%node/createFreewayProject'] = array(
- 'title' => 'Create Freeway Project',
- 'page callback' => 'drupal_get_form',
- 'page arguments' => array('create_freeway_project'),
- 'access callback' => 'node_access',
- 'access arguments' => array('update', 1),
- 'weight' => 1,
- 'file' => 'freeway.admin.inc',
- 'type' => MENU_LOCAL_TASK,
- );
- return $items;
- }
Add Comment
Please, Sign In to add comment