You are here

globallink_webform.module in GlobalLink Connect for Drupal 7.6

GlobalLink webform translation module.

This module adds webform translation support with configuration options.

File

globallink_webform/globallink_webform.module
View source
<?php

/**
 * @file
 * GlobalLink webform translation module.
 *
 * This module adds webform translation support with configuration options.
 */

/**
 * Implements hook_menu().
 */
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(
      'webform',
    ),
  );
  $items['admin/globallink-translations/activeSubmissions/webform'] = array(
    'title' => ' Webforms ',
    'page callback' => 'globallink_webform_active_submissions',
    'access callback' => 'globallink_access_callback_any',
    'file' => 'globallink_webform_active_submissions.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
    'page arguments' => array(
      'webform',
    ),
  );
  $items['admin/globallink-translations/receiveTranslation/webform'] = array(
    'title' => ' Webforms ',
    'page callback' => 'globallink_webform_receive_submissions',
    'access callback' => 'globallink_access_callback_any',
    'file' => 'globallink_webform_receive.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
    'page arguments' => array(
      '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;
}

Functions

Namesort descending Description
globallink_webform_menu Implements hook_menu().