You are here

function kml_menu in KML 5

Same name and namespace in other branches
  1. 6 kml.module \kml_menu()

Implementation of hook_menu().

File

./kml.module, line 39
KML Module

Code

function kml_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'kml',
      'title' => t('KML feeds'),
      'callback' => 'kml_interface',
      'access' => user_access('access kml'),
      'type' => MENU_SUGGESTED_ITEM,
    );
  }
  else {
    $items[] = array(
      'path' => 'admin/settings/kml',
      'title' => t('KML'),
      'description' => t('Settings for the KML module'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'kml_admin_settings',
      ),
      'access' => user_access('administer kml'),
      'type' => MENU_NORMAL_ITEM,
    );
  }
  return $items;
}