function media_sitemap_menu in Media Sitemap 7
Implements hook_menu().
Provides a page for configuring sitemap settings.
File
- ./
media_sitemap.module, line 38 - This module is used for creating XML sitemap of Image/Video for Google.
Code
function media_sitemap_menu() {
$items[MEDIA_SITEMAP_ADMIN_PATH] = array(
'title' => 'Media Sitemap',
'description' => 'Create and configure google image sitemap.',
'page callback' => '_media_sitemap_list',
'access arguments' => array(
'administer media sitemap',
),
);
$items[MEDIA_SITEMAP_ADMIN_PATH . '/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -5,
);
$items[MEDIA_SITEMAP_ADMIN_PATH . '/generate'] = array(
'title' => 'Add new Google Image sitemap',
'page callback' => '_media_sitemap_generate_sitemap',
'access arguments' => array(
'administer media sitemap',
),
);
return $items;
}