You are here

globallink_menu.module in GlobalLink Connect for Drupal 7.6

GlobalLink menu translation module.

This module adds menu translation support with configuration options.

File

globallink_menu/globallink_menu.module
View source
<?php

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

/**
 * Implements hook_menu().
 */
function globallink_menu_menu() {
  $items = array();
  $items['admin/globallink-translations/dashboard/menu'] = array(
    'title' => ' Menus ',
    'page callback' => 'globallink_menu_dashboard',
    'access callback' => 'globallink_access_callback_any',
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
    'file' => 'globallink_menu_send.inc',
    'page arguments' => array(
      'menu',
    ),
  );
  $items['admin/globallink-translations/activeSubmissions/menu'] = array(
    'title' => ' Menus ',
    'page callback' => 'globallink_menu_active_submissions',
    'access callback' => 'globallink_access_callback_any',
    'file' => 'globallink_menu_active_submissions.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
    'page arguments' => array(
      'menu',
    ),
  );
  $items['admin/globallink-translations/receiveTranslation/menu'] = array(
    'title' => ' Menus ',
    'page callback' => 'globallink_menu_receive_submissions',
    'access callback' => 'globallink_access_callback_any',
    'file' => 'globallink_menu_receive.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
    'page arguments' => array(
      'menu',
    ),
  );
  $items['admin/globallink-translations/receiveTranslation/menu/preview'] = array(
    'title' => 'Preview Translation',
    'page callback' => 'globallink_menu_preview_translated_content',
    'file' => 'globallink_menu_receive.inc',
    'access arguments' => array(
      TPT_ROLE_MANAGE_TRANSLATIONS,
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}

Functions

Namesort descending Description
globallink_menu_menu Implements hook_menu().