You are here

function apachesolr_attachments_menu in Apache Solr Attachments 5

Same name and namespace in other branches
  1. 6.3 apachesolr_attachments.module \apachesolr_attachments_menu()
  2. 6 apachesolr_attachments.module \apachesolr_attachments_menu()
  3. 6.2 apachesolr_attachments.module \apachesolr_attachments_menu()
  4. 7 apachesolr_attachments.module \apachesolr_attachments_menu()

Implementation of hook_menu().

File

./apachesolr_attachments.module, line 14
Provides a file attachment search implementation for use with the Apache Solr module

Code

function apachesolr_attachments_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/apachesolr/attachments',
      'title' => t('Apache Solr Attachments Settings'),
      'description' => t('Administer Apache Solr Attachments'),
      'callback' => 'drupal_get_form',
      'callback arguments' => 'apachesolr_attachments_settings',
      'access' => user_access('administer site configuration'),
    );
  }
  return $items;
}