You are here

function googlenews_menu in Google News sitemap 5

Same name and namespace in other branches
  1. 6 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($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'googlenews.xml',
      'callback' => '_googlenews_getgooglenews',
      'access' => user_access('access content'),
      'type' => MENU_CALLBACK,
    );
    $items[] = array(
      'path' => 'admin/settings/googlenews',
      'title' => 'Google News sitemap',
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'googlenews_admin_settings',
      ),
      'access' => user_access('administer site configuration'),
    );
  }
  return $items;
}