function globallink_webform_menu in GlobalLink Connect for Drupal 7.7
Same name and namespace in other branches
- 7.5 globallink_webform/globallink_webform.module \globallink_webform_menu()
- 7.6 globallink_webform/globallink_webform.module \globallink_webform_menu()
Implements hook_menu().
File
- globallink_webform/
globallink_webform.module, line 13 - GlobalLink webform translation module.
Code
function globallink_webform_menu() {
$items = array();
$items['admin/globallink-translations/dashboard/webform'] = array(
'title' => ' Webforms ',
'page callback' => 'globallink_webform_dashboard_page',
'access callback' => 'globallink_access_callback_any',
'type' => MENU_LOCAL_TASK,
'file' => 'globallink_webform_send.inc',
'weight' => 10,
'page arguments' => array(
GLOBALLINK_ENTITY_TYPE_WEBFORM,
),
);
$items['admin/globallink-translations/dashboard/webform/preview/%/%ctools_js'] = array(
'title' => 'Preview',
'page callback' => 'globallink_webform_preview',
'page arguments' => array(
5,
),
'file' => 'globallink_webform_send.inc',
'access callback' => 'globallink_access_callback_any',
'type' => MENU_CALLBACK,
);
$items['admin/globallink-translations/workbench/webform/%sub_id/%lang_id'] = array(
'title' => ' Webforms ',
'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_WEBFORM,
),
);
$items['admin/globallink-translations/receiveTranslation/webform/preview'] = array(
'title' => 'Preview Translation',
'page callback' => 'globallink_webform_preview_translated_content',
'file' => 'globallink_webform_receive.inc',
'access arguments' => array(
TPT_ROLE_MANAGE_TRANSLATIONS,
),
'type' => MENU_CALLBACK,
);
return $items;
}