You are here

globallink_block.module in GlobalLink Connect for Drupal 7.7

GlobalLink block translation module.

This module adds block translation support with configuration options.

File

globallink_block/globallink_block.module
View source
<?php

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

/**
 * Implements hook_menu().
 */
function globallink_block_menu() {
  $items = array();
  $items['admin/globallink-translations/dashboard/block'] = array(
    'title' => ' Blocks ',
    'page callback' => 'globallink_block_dashboard',
    'access callback' => 'globallink_access_callback_any',
    'type' => MENU_LOCAL_TASK,
    'file' => 'globallink_block_send.inc',
    'weight' => 10,
    'page arguments' => array(
      GLOBALLINK_ENTITY_TYPE_BLOCK,
    ),
  );
  $items['admin/globallink-translations/dashboard/block/preview/%/%ctools_js'] = array(
    'title' => 'Preview',
    'page callback' => 'globallink_block_preview',
    'page arguments' => array(
      5,
    ),
    'file' => 'globallink_block_send.inc',
    'access callback' => 'globallink_access_callback_any',
    // 'access arguments' => array(TPT_ROLE_MANAGE_TRANSLATIONS),
    'type' => MENU_CALLBACK,
  );
  $items['admin/globallink-translations/workbench/block/%sub_id/%lang_id'] = array(
    'title' => ' Blocks ',
    '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_BLOCK,
    ),
  );
  $items['admin/globallink-translations/receiveTranslation/block/preview'] = array(
    'title' => 'Preview Translation',
    'page callback' => 'globallink_block_preview_translated_block_content',
    'file' => 'globallink_block_receive.inc',
    'access arguments' => array(
      TPT_ROLE_MANAGE_TRANSLATIONS,
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}

Functions

Namesort descending Description
globallink_block_menu Implements hook_menu().