function vkxp_menu in VK CrossPoster 7
Same name and namespace in other branches
- 6.3 vkxp.module \vkxp_menu()
- 6 vkxp.module \vkxp_menu()
- 6.2 vkxp.module \vkxp_menu()
- 7.2 vkxp.module \vkxp_menu()
Implements hook_menu().
File
- ./
vkxp.module, line 47
Code
function vkxp_menu() {
$items['admin/config/services/vkxp'] = array(
'title' => 'VKontakte CrossPoster',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'vkxp_admin_main_settings',
),
'access arguments' => array(
'administer vkontakte crossposter',
),
'file' => 'vkxp.admin.inc',
);
$items['admin/config/services/vkxp/main'] = array(
'title' => 'Main settings',
'file' => 'vkxp.admin.inc',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
);
$items['admin/config/services/vkxp/node'] = array(
'title' => 'Node settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'vkxp_admin_node_settings',
),
'access arguments' => array(
'administer vkontakte crossposter',
),
'file' => 'vkxp.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
$items['admin/config/services/vkxp/images'] = array(
'title' => 'Images settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'vkxp_admin_images_settings',
),
'access arguments' => array(
'administer vkontakte crossposter',
),
'file' => 'vkxp.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 2,
);
// This page recieves authorization result from vk.com.
$items['vkxp'] = array(
'page callback' => 'vkxp_authorize',
'access callback' => TRUE,
'file' => 'vkxp.pages.inc',
'type' => MENU_CALLBACK,
);
return $items;
}