function facebook_album_menu in Facebook Album 7.3
Same name and namespace in other branches
- 7 facebook_album.module \facebook_album_menu()
- 7.2 facebook_album.module \facebook_album_menu()
Implements menu_hook()
Setup routes to their appropriate functions
File
- ./
facebook_album.module, line 16
Code
function facebook_album_menu() {
$items = [];
$items['admin/config/services/facebook_album'] = [
'title' => 'Facebook Album Settings',
'page callback' => 'drupal_get_form',
'page arguments' => [
'facebook_album_admin_form',
'system_admin_menu_block_page',
],
'access arguments' => [
'facebook album',
],
'file' => 'facebook_album.admin.inc',
'type' => MENU_NORMAL_ITEM,
];
$items['facebook_album/%/get/albums'] = [
'title' => 'Fetch Albums',
'page callback' => 'facebook_album_ajax_get_albums',
'page arguments' => [
1,
],
'access arguments' => [
'access content',
],
'type' => MENU_CALLBACK,
];
$items['facebook_album/%/get/albums/next/%'] = [
'title' => 'Fetch Next Albums',
'page callback' => 'facebook_album_ajax_get_albums_next',
'page arguments' => [
5,
1,
],
'access arguments' => [
'access content',
],
'type' => MENU_CALLBACK,
];
$items['facebook_album/%/get/album/%'] = [
'title' => 'Fetch Album Photos',
'page callback' => 'facebook_album_ajax_get_album',
'page arguments' => [
4,
1,
],
'access arguments' => [
'access content',
],
'type' => MENU_CALLBACK,
];
$items['facebook_album/%/get/album/%/next/%'] = [
'title' => 'Fetch Next Album Photos',
'page callback' => 'facebook_album_ajax_get_album_next',
'page arguments' => [
4,
6,
1,
],
'access arguments' => [
'access content',
],
'type' => MENU_CALLBACK,
];
$items['facebook_album/%/get/photo/%'] = [
'title' => 'Fetch Photo Url',
'page callback' => 'facebook_album_ajax_get_photo_url',
'page arguments' => [
4,
1,
],
'access arguments' => [
'access content',
],
'type' => MENU_CALLBACK,
];
return $items;
}