You are here

function tmgmt_ui_menu in Translation Management Tool 7

Implements hook_menu().

File

ui/tmgmt_ui.module, line 43
Common Translation managment UI.

Code

function tmgmt_ui_menu() {
  $items['admin/config/regional/tmgmt_settings'] = array(
    'title' => 'Translation Management settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'tmgmt_ui_settings_form',
    ),
    'access arguments' => array(
      'administer tmgmt',
    ),
    'file' => 'includes/tmgmt_ui.pages.inc',
    'weight' => 10,
  );
  $items['admin/tmgmt/cart'] = array(
    'title' => 'Cart',
    'title callback' => 'tmgmt_ui_cart_title',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'tmgmt_ui_cart_content',
    ),
    'access arguments' => array(
      'create translation jobs',
    ),
    'file' => 'includes/tmgmt_ui.pages.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 20,
  );

  // Some source plugins might provide menu items.
  foreach (tmgmt_source_ui_controller() as $controller) {
    $items += $controller
      ->hook_menu();
  }
  return $items;
}