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