You are here

function apachesolr_confgen_menu in Apache Solr Config Generator 7

Same name and namespace in other branches
  1. 6 apachesolr_confgen.module \apachesolr_confgen_menu()

Implements hook_menu().

File

./apachesolr_confgen.module, line 16
Generator for Apache Solr Configuration Files.

Code

function apachesolr_confgen_menu() {
  $items['admin/config/search/apachesolr/confgen'] = array(
    'title' => 'Config File Generation',
    'weight' => 20,
    'access arguments' => array(
      'administer search',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'apachesolr_confgen_form',
    ),
    'file' => 'apachesolr_confgen.admin.inc',
    'access arguments' => array(
      'administer search',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/config/search/apachesolr/confgen/download'] = array(
    'title' => 'Config File Download',
    'weight' => 20,
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  return $items;
}