You are here

function globallink_taxonomy_menu in GlobalLink Connect for Drupal 7.7

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

Implements hook_menu().

File

globallink_taxonomy/globallink_taxonomy.module, line 13
GlobalLink taxonomy translation module.

Code

function globallink_taxonomy_menu() {
  $items = array();
  $items['admin/globallink-translations/dashboard/taxonomy'] = array(
    'title' => ' Taxonomy ',
    'page callback' => 'globallink_taxonomy_dashboard',
    'access callback' => 'globallink_access_callback_any',
    'type' => MENU_LOCAL_TASK,
    'file' => 'globallink_taxonomy_send.inc',
    'weight' => 10,
    'page arguments' => array(
      GLOBALLINK_ENTITY_TYPE_TAXONOMY,
    ),
  );
  $items['admin/globallink-translations/dashboard/taxonomy/preview/%/%ctools_js'] = array(
    'title' => 'Preview',
    'page callback' => 'globallink_taxonomy_preview',
    'page arguments' => array(
      5,
    ),
    'file' => 'globallink_taxonomy_send.inc',
    'access callback' => 'globallink_access_callback_any',
    // 'access arguments' => array(TPT_ROLE_MANAGE_TRANSLATIONS),
    'type' => MENU_CALLBACK,
  );
  $items['admin/globallink-translations/workbench/taxonomy/%sub_id/%lang_id'] = array(
    'title' => ' Taxonomy ',
    'page callback' => 'globallink_dashboard_active_submissions_page',
    'access callback' => 'globallink_access_callback_any',
    'file' => '../globallink_workbench_all_active_submissions.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
    'page arguments' => array(
      GLOBALLINK_ENTITY_TYPE_TAXONOMY,
    ),
  );
  $items['admin/globallink-translations/receiveTranslation/taxonomy/preview'] = array(
    'title' => 'Preview Translation',
    'page callback' => 'globallink_taxonomy_preview_translated_content',
    'file' => 'globallink_taxonomy_receive.inc',
    'access arguments' => array(
      TPT_ROLE_MANAGE_TRANSLATIONS,
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}