You are here

function globallink_entity_menu in GlobalLink Connect for Drupal 7.7

Same name and namespace in other branches
  1. 7.5 globallink_entity/globallink_entity.module \globallink_entity_menu()
  2. 7.6 globallink_entity/globallink_entity.module \globallink_entity_menu()

Implements hook_menu().

File

globallink_entity/globallink_entity.module, line 206
GlobalLink entity translation module.

Code

function globallink_entity_menu() {
  $items = array();
  $items['admin/globallink-translations/dashboard/entity'] = array(
    'title' => ' Entity ',
    'page callback' => 'globallink_entity_dashboard',
    'access callback' => 'globallink_access_callback_any',
    'type' => MENU_LOCAL_TASK,
    'file' => 'globallink_entity_send.inc',
    'page arguments' => array(
      GLOBALLINK_ENTITY_TYPE_ENTITY,
    ),
  );
  $items['admin/globallink-translations/dashboard/entity/preview/%/%ctools_js'] = array(
    'title' => 'Preview',
    'page callback' => 'globallink_entity_preview',
    'page arguments' => array(
      5,
    ),
    'file' => 'globallink_entity_send.inc',
    'access callback' => 'globallink_access_callback_any',
    // 'access arguments' => array(TPT_ROLE_MANAGE_TRANSLATIONS),
    'type' => MENU_CALLBACK,
  );
  $items['admin/globallink-translations/workbench/entity/%sub_id/%lang_id'] = array(
    'title' => ' Entity ',
    'page callback' => 'globallink_dashboard_active_submissions_page',
    'access callback' => 'globallink_access_callback_any',
    'file' => '../globallink_workbench_all_active_submissions.inc',
    'type' => MENU_LOCAL_TASK,
    'page arguments' => array(
      4,
    ),
  );
  $items['admin/globallink-translations/receiveTranslation/entity/preview'] = array(
    'title' => 'Preview Translation',
    'page callback' => 'globallink_entity_preview_translated_content',
    'file' => 'globallink_entity_receive.inc',
    'access arguments' => array(
      TPT_ROLE_MANAGE_TRANSLATIONS,
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}