globallink_taxonomy.module in GlobalLink Connect for Drupal 7.7
Same filename and directory in other branches
GlobalLink taxonomy translation module.
This module adds taxonomy translation support with configuration options.
File
globallink_taxonomy/globallink_taxonomy.moduleView source
<?php
/**
* @file
* GlobalLink taxonomy translation module.
*
* This module adds taxonomy translation support with configuration options.
*/
/**
* Implements hook_menu().
*/
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;
}
Functions
Name | Description |
---|---|
globallink_taxonomy_menu | Implements hook_menu(). |