function top_searches_menu in Top Searches 6
Same name and namespace in other branches
- 5 top_searches.module \top_searches_menu()
 - 7 top_searches.module \top_searches_menu()
 
Implementation of hook_menu().
File
- ./
top_searches.module, line 20  
Code
function top_searches_menu() {
  $items = array();
  $items['admin/settings/top_searches'] = array(
    'access arguments' => array(
      'administer blocks',
    ),
    'title' => 'Top Searches',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'top_searches_admin_form',
    ),
    'description' => 'General settings for the Top Searches module.',
    'file' => 'top_searches.admin.inc',
  );
  $items['admin/settings/top_searches/clear'] = array(
    'access arguments' => array(
      'administer blocks',
    ),
    'title' => 'Top Searches',
    'type' => MENU_CALLBACK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'top_searches_form_clear_confirm',
    ),
    'description' => 'General settings for the Top Searches module.',
    'file' => 'top_searches.admin.inc',
  );
  return $items;
}