You are here

function globallink_block_menu in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.7 globallink_block/globallink_block.module \globallink_block_menu()
  2. 7.5 globallink_block/globallink_block.module \globallink_block_menu()

Implements hook_menu().

File

globallink_block/globallink_block.module, line 13
GlobalLink block translation module.

Code

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;
}