You are here

function globallink_beans_menu in GlobalLink Connect for Drupal 7.7

Same name and namespace in other branches
  1. 7.6 globallink_beans/globallink_beans.module \globallink_beans_menu()

Implements hook_menu().

File

globallink_beans/globallink_beans.module, line 13
To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor.

Code

function globallink_beans_menu() {
  $items = array();
  $items['admin/globallink-translations/dashboard/bean'] = array(
    'title' => ' Beans ',
    'page callback' => 'globallink_beans_dashboard',
    'access callback' => 'globallink_access_callback_any',
    'type' => MENU_LOCAL_TASK,
    'file' => 'globallink_beans_send.inc',
    'weight' => 10,
    'page arguments' => array(
      GLOBALLINK_ENTITY_TYPE_BEAN,
    ),
  );
  $items['admin/globallink-translations/workbench/bean/%sub_id/%lang_id'] = array(
    'title' => 'Beans ',
    'page callback' => 'globallink_dashboard_active_submissions_page',
    'access callback' => 'globallink_access_callback_any',
    'file' => '../globallink_workbench_all_active_submissions.inc',
    'type' => MENU_LOCAL_TASK,
    'page arguments' => array(
      GLOBALLINK_ENTITY_TYPE_BEAN,
    ),
  );
  $items['admin/globallink-translations/dashboard/bean/preview/%/%ctools_js'] = array(
    'title' => 'Preview',
    'page callback' => 'globallink_beans_preview',
    'page arguments' => array(
      5,
    ),
    'file' => 'globallink_beans_send.inc',
    'access callback' => 'globallink_access_callback_any',
    'type' => MENU_CALLBACK,
  );
  return $items;
}