function globallink_menu in GlobalLink Connect for Drupal 7.7
Same name and namespace in other branches
- 7.5 globallink.module \globallink_menu()
- 7.6 globallink.module \globallink_menu()
Implements hook_menu().
5 string references to 'globallink_menu'
- globallink_all_active_form in ./
globallink_workbench_all_active_submissions.inc - Builds form to show all active entity submissions.
- globallink_create_submission_form in ./
globallink_send_translations.inc - globallink_dashboard_active in ./
globallink_workbench_all_submissions.inc - Form to show all active GlobalLink submissions.
- globallink_menu_dashboard_form in globallink_menu/
globallink_menu_send.inc - Builds form to create a menu submission.
- globallink_upload_translation_all_form_submit in ./
globallink_workbench_all_active_submissions.inc
File
- ./
globallink.module, line 1309 - GlobalLink translation module.
Code
function globallink_menu() {
$items = array();
$items['admin/globallink-translations'] = array(
'title' => 'GlobalLink',
'description' => 'Allows users to manage and translate content using Translations.com translation services',
'page callback' => 'globallink_dashboard_page',
'access callback' => 'globallink_access_callback_any',
'file' => 'globallink_send_translations.inc',
'page arguments' => array(
GLOBALLINK_ENTITY_TYPE_NODE,
),
);
$items['admin/globallink-translations/dashboard'] = array(
'title' => ' Translate ',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
'page arguments' => array(
GLOBALLINK_ENTITY_TYPE_NODE,
),
);
$items['admin/globallink-translations/dashboard/node'] = array(
'title' => ' Content ',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -5,
'page arguments' => array(
GLOBALLINK_ENTITY_TYPE_NODE,
),
);
$items['admin/globallink-translations/dashboard/node/preview/%/%ctools_js'] = array(
'title' => 'Preview',
'page callback' => 'globallink_node_preview',
'page arguments' => array(
5,
),
'file' => 'globallink_send_translations.inc',
'access callback' => 'globallink_access_callback_any',
'type' => MENU_CALLBACK,
);
$items['admin/globallink-translations/workbench/%/%/%/preview/%/%ctools_js'] = array(
'title' => 'Preview',
'page callback' => 'globallink_preview',
'page arguments' => array(
3,
4,
5,
7,
),
'file' => 'globallink_workbench_all_active_submissions.inc',
'access callback' => 'globallink_access_callback_any',
'type' => MENU_CALLBACK,
);
$items['admin/globallink-translations/workbench'] = array(
'title' => 'Workbench',
'description' => 'Presents a Dashboard interface to view active submissions',
'page callback' => 'globallink_dashboard_active_submissions_page',
'access callback' => 'globallink_access_callback_any',
'file' => 'globallink_workbench_all_submissions.inc',
'weight' => -1,
'type' => MENU_LOCAL_TASK,
);
$items['admin/globallink-translations/workbench/active'] = array(
'title' => ' Active Submissions ',
'description' => 'Presents a Dashboard interface to view active submissions',
'page callback' => 'globallink_dashboard_active_submissions_page',
'access callback' => 'globallink_access_callback_any',
'file' => 'globallink_workbench_all_submissions.inc',
'weight' => -1,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/globallink-translations/workbench/completed'] = array(
'title' => ' Completed Submissions ',
'description' => 'Presents a Dashboard interface to view active submissions',
'page callback' => 'globallink_dashboard_active_submissions_page',
'access callback' => 'globallink_access_callback_any',
'file' => 'globallink_workbench_all_submissions.inc',
'weight' => -1,
'type' => MENU_LOCAL_TASK,
);
$items['admin/globallink-translations/workbench/node/%sub_id/%lang_id'] = array(
'title' => ' Content ',
'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(
GLOBALLINK_ENTITY_TYPE_NODE,
),
'weight' => -1,
);
$items['admin/globallink-translations/workbench/all/%sub_id/%lang_id'] = array(
'title' => ' All ',
'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(
GLOBALLINK_ENTITY_TYPE_NODE,
),
'weight' => -1,
);
$items['admin/globallink-translations/settings'] = array(
'title' => 'Settings',
'description' => 'Manage settings for GlobalLink',
'page callback' => 'globallink_settings_page',
'access arguments' => array(
TPT_ROLE_MANAGE_TRANSLATIONS,
),
'type' => MENU_LOCAL_TASK,
'file' => 'globallink_settings.inc',
);
$items['admin/globallink-translations/settings/globallinkSettings'] = array(
'title' => ' Settings ',
'access arguments' => array(
TPT_ROLE_MANAGE_TRANSLATIONS,
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -1,
);
$items['admin/globallink-translations/settings/locale'] = array(
'title' => 'Locale Mapping',
'description' => 'Manage locale mappings for GlobalLink',
'page callback' => 'globallink_locale_page',
'access arguments' => array(
TPT_ROLE_MANAGE_TRANSLATIONS,
),
'type' => MENU_LOCAL_TASK,
'file' => 'globallink_locale_mapping.inc',
);
$items['admin/globallink-translations/settings/fieldConfig'] = array(
'title' => 'Field Configuration',
'description' => 'Manage translatable fields for content types',
'page callback' => 'globallink_field_page',
'access arguments' => array(
TPT_ROLE_MANAGE_TRANSLATIONS,
),
'type' => MENU_LOCAL_TASK,
'file' => 'globallink_field_configuration.inc',
);
$items['admin/globallink-translations/cron'] = array(
'title' => 'Receive Translations Cron',
'page callback' => 'globallink_receive_translated_contents_automatically',
'file' => 'globallink_receive_translations.inc',
'access arguments' => array(
TPT_ROLE_MANAGE_TRANSLATIONS,
),
'type' => MENU_CALLBACK,
);
$items['admin/globallink-translations/preview'] = array(
'title' => 'Preview Translation',
'page callback' => 'globallink_preview_translated_content',
'file' => 'globallink_receive_translations.inc',
'access arguments' => array(
TPT_ROLE_MANAGE_TRANSLATIONS,
),
'type' => MENU_CALLBACK,
);
$items['admin/globallink-translations/view_log'] = array(
'title' => 'View Log',
'page callback' => 'globallink_view_log',
'file' => 'globallink_settings.inc',
'access arguments' => array(
TPT_ROLE_MANAGE_TRANSLATIONS,
),
'type' => MENU_CALLBACK,
);
$items['admin/create-submission/%ctools_js'] = array(
'page callback' => 'globallink_submission_callback',
'page arguments' => array(
2,
),
'file' => 'globallink_send_translations.inc',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['admin/create-submission/select_all_js'] = array(
'page callback' => 'globallink_select_all_callback',
'file' => 'globallink_send_translations.inc',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['admin/create-submission/select_id_js'] = array(
'page callback' => 'globallink_select_id_callback',
'file' => 'globallink_send_translations.inc',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['admin/globallink-translations/settings/taxonomy'] = array(
'title' => 'Translation mode',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'globallink_translations_settings_taxonomy',
1,
),
'access callback' => TRUE,
'file' => 'globallink_settings.inc',
'type' => MENU_CALLBACK,
);
return $items;
}