You are here

function location_generate_menu in Location 5.3

Implementation of hook_menu().

File

contrib/location_generate/location_generate.module, line 11
Generate random locations.

Code

function location_generate_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/content/generate_location',
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'location_generate_form',
      ),
      'description' => t('Generate locations for nodes and/or users. Overwrites current locations!'),
      'title' => t('Generate locations'),
      'access' => user_access('administer nodes'),
    );
  }
  return $items;
}