function globallink_commerce_menu in GlobalLink Connect for Drupal 7.7
Implements hook_menu().
File
- globallink_commerce/
globallink_commerce.module, line 13 - GlobalLink commerce translation module.
Code
function globallink_commerce_menu() {
$items = array();
$items['admin/globallink-translations/dashboard/commerce'] = array(
'title' => ' Commerce ',
'page callback' => 'globallink_commerce_dashboard',
'access callback' => 'globallink_access_callback_any',
'type' => MENU_LOCAL_TASK,
'file' => 'globallink_commerce_send.inc',
'weight' => 10,
'page arguments' => array(
GLOBALLINK_ENTITY_TYPE_COM,
),
);
$items['admin/globallink-translations/dashboard/commerce/preview/%/%ctools_js'] = array(
'title' => 'Preview',
'page callback' => 'globallink_commerce_preview',
'page arguments' => array(
5,
),
'file' => 'globallink_commerce_send.inc',
'access callback' => 'globallink_access_callback_any',
'type' => MENU_CALLBACK,
);
$items['admin/globallink-translations/workbench/commerce/%sub_id/%lang_id'] = array(
'title' => ' Commerce ',
'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_COM,
),
);
$items['admin/globallink-translations/receiveTranslation/commerce/preview'] = array(
'title' => 'Preview Translation',
'page callback' => 'globallink_commerce_preview_translated_content',
'file' => 'globallink_commerce_receive.inc',
'access arguments' => array(
TPT_ROLE_MANAGE_TRANSLATIONS,
),
'type' => MENU_CALLBACK,
);
return $items;
}