You are here

function linkit_menu in Linkit 7

Same name and namespace in other branches
  1. 6 linkit.module \linkit_menu()
  2. 7.3 linkit.module \linkit_menu()
  3. 7.2 linkit.module \linkit_menu()

Implements hook_menu().

File

./linkit.module, line 11
Main file for linkit module.

Code

function linkit_menu() {
  $items = array();
  $items['linkit/dashboard/%'] = array(
    'title' => 'Linkit',
    'description' => 'Dashboard',
    'page callback' => 'linkit_dashboard_page',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
    'page arguments' => array(
      2,
    ),
    'theme callback' => '_linkit_dashboard_theme',
  );
  $items['linkit/autocomplete'] = array(
    'title' => 'Link to node',
    'page callback' => 'linkit_autocomplete',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
    'page arguments' => array(
      2,
    ),
  );
  $items['linkit/geteditresult'] = array(
    'title' => 'Get search result styled link',
    'page callback' => 'linkit_search_styled_link',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/content/linkit'] = array(
    'title' => 'Linkit settings',
    'description' => 'Configure Linkit',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'linkit_admin_settings',
    ),
    'access arguments' => array(
      'administer linkit',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'linkit.admin.inc',
  );
  return $items;
}