globallink_block.module in GlobalLink Connect for Drupal 7.6
Same filename and directory in other branches
GlobalLink block translation module.
This module adds block translation support with configuration options.
File
globallink_block/globallink_block.moduleView 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(
'block',
),
);
$items['admin/globallink-translations/activeSubmissions/block'] = array(
'title' => ' Blocks ',
'page callback' => 'globallink_block_active_submissions',
'access callback' => 'globallink_access_callback_any',
'file' => 'globallink_block_active_submissions.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 10,
'page arguments' => array(
'block',
),
);
$items['admin/globallink-translations/receiveTranslation/block'] = array(
'title' => ' Blocks ',
'page callback' => 'globallink_block_receive_submissions',
'access callback' => 'globallink_access_callback_any',
'file' => 'globallink_block_receive.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 10,
'page arguments' => array(
'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
Name![]() |
Description |
---|---|
globallink_block_menu | Implements hook_menu(). |