You are here

function googlenews_menu in Google News sitemap 7

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

Implementation of hook_menu().

File

./googlenews.module, line 13
Provides a Google News sitemap within your site using the URL.

Code

function googlenews_menu() {
  $items['googlenews.xml'] = array(
    'page callback' => 'googlenews_getgooglenews',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'googlenews.sitemap.inc',
  );
  $items['admin/config/search/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',
    ),
    'file' => 'googlenews.admin.inc',
  );
  return $items;
}