function globallink_menu in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.7 globallink.module \globallink_menu()
- 7.5 globallink.module \globallink_menu()
Implements hook_menu().
5 string references to 'globallink_menu'
- globallink_auto_receive in ./
globallink.module - Automatically receives translated contents.
- globallink_menu_active_select_form in globallink_menu/
globallink_menu_active_submissions.inc - Builds form to allow selection of specific menu submission by ID.
- globallink_menu_dashboard_form in globallink_menu/
globallink_menu_send.inc - Builds form to create a menu submission.
- globallink_menu_get_translations_for_row_id in globallink_menu/
globallink_menu_receive.inc - Gets menu translations by row ID.
- globallink_menu_receive_filter_form in globallink_menu/
globallink_menu_receive.inc - Builds form to filter menus to receive on dashboard.
File
- ./
globallink.module, line 1248 - 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(
'node',
),
);
$items['admin/globallink-translations/dashboard'] = array(
'title' => 'Send For Translation',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
'page arguments' => array(
'node',
),
);
$items['admin/globallink-translations/dashboard/node'] = array(
'title' => ' Content ',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -5,
'page arguments' => array(
'node',
),
);
$items['admin/globallink-translations/activeSubmissions'] = 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_active_submissions.inc',
'weight' => -1,
'type' => MENU_LOCAL_TASK,
'page arguments' => array(
'node',
),
);
$items['admin/globallink-translations/activeSubmissions/node'] = array(
'title' => ' Content ',
'type' => MENU_DEFAULT_LOCAL_TASK,
'page arguments' => array(
'node',
),
'access callback' => 'globallink_access_callback_any',
);
$items['admin/globallink-translations/receiveTranslation'] = array(
'title' => 'Receive Translation',
'description' => 'Presents a Dashboard interface to receive and publish translations',
'page callback' => 'globallink_dashboard_receive_page',
'access callback' => 'globallink_access_callback_any',
'type' => MENU_LOCAL_TASK,
'file' => 'globallink_receive_translations.inc',
'weight' => -1,
'page arguments' => array(
'node',
),
);
$items['admin/globallink-translations/receiveTranslation/node'] = array(
'title' => ' Content ',
'access callback' => 'globallink_access_callback_any',
'type' => MENU_DEFAULT_LOCAL_TASK,
'page arguments' => array(
'node',
),
);
$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/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/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,
);
return $items;
}