You are here

function googlenews_menu in Google News sitemap 6

Same name and namespace in other branches
  1. 5 googlenews.module \googlenews_menu()
  2. 7 googlenews.module \googlenews_menu()

Implementation of hook_menu().

File

./googlenews.module, line 21
Provides a Google News sitemap within your site using the url: http://www.yoursite.com/googlenews.xml

Code

function googlenews_menu() {
  $items['googlenews.xml'] = array(
    'page callback' => '_googlenews_getgooglenews',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/settings/googlenews'] = array(
    'title' => 'Google News sitemap',
    'description' => 'Specify category types for the Google News sitemap.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'googlenews_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  return $items;
}