function linkit_menu in Linkit 6
Same name and namespace in other branches
- 7.3 linkit.module \linkit_menu()
- 7 linkit.module \linkit_menu()
- 7.2 linkit.module \linkit_menu()
Implementation of hook_menu().
File
- ./
linkit.module, line 11 - Main file for linkit module.
Code
function linkit_menu() {
$items = array();
$items['admin/linkit/dashboard/%'] = array(
'title' => 'Linkit',
'description' => 'Dashboard',
'page callback' => 'linkit_dashboard_page',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
'page arguments' => array(
3,
),
);
$items['admin/linkit/autocomplete'] = array(
'title' => 'Link to node',
'page callback' => 'linkit_autocomplete',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
'page arguments' => array(
3,
),
);
$items['admin/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/settings/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;
}