You are here

function tmgmt_local_menu in Translation Management Tool 7

Implements hook_menu().

File

translators/tmgmt_local/tmgmt_local.module, line 157
Main module file for the local translation module.

Code

function tmgmt_local_menu() {
  $items['translate/%tmgmt_local_task/assign-to-me'] = array(
    'title' => 'Assign translation task to me',
    'description' => 'Assign translation task to current translator user.',
    'page callback' => 'tmgmt_local_translation_assign_to_me',
    'page arguments' => array(
      1,
    ),
    'access callback' => 'tmgmt_local_translation_access',
    'access arguments' => array(
      1,
    ),
    'file' => 'includes/tmgmt_local.pages.inc',
  );
  $items['manage-translate/assign-tasks'] = array(
    'title' => 'Assign translation task',
    'description' => 'Assign translation tasks to specific translator.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'tmgmt_local_translation_assign_form',
      2,
    ),
    'access arguments' => array(
      'administer translation tasks',
    ),
    'file' => 'includes/tmgmt_local.pages.inc',
    'type' => MENU_CALLBACK,
  );
  $items['manage-translate/reassign-tasks'] = array(
    'title' => 'Reassign translation task',
    'description' => 'Ressign translation tasks to specific translator.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'tmgmt_local_translation_reassign_form',
      2,
    ),
    'access arguments' => array(
      'administer translation tasks',
    ),
    'file' => 'includes/tmgmt_local.pages.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}