You are here

function apachesolr_attachments_admin_page in Apache Solr Attachments 7

Same name and namespace in other branches
  1. 6.3 apachesolr_attachments.admin.inc \apachesolr_attachments_admin_page()
  2. 6 apachesolr_attachments.admin.inc \apachesolr_attachments_admin_page()
  3. 6.2 apachesolr_attachments.admin.inc \apachesolr_attachments_admin_page()

Menu callback: Apache Solr Attachments settings tab.

1 string reference to 'apachesolr_attachments_admin_page'
apachesolr_attachments_menu in ./apachesolr_attachments.module
Implements hook_menu().

File

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

Code

function apachesolr_attachments_admin_page($environment = NULL) {
  if (empty($environment)) {
    $env_id = apachesolr_default_environment();
    $environment = apachesolr_environment_load($env_id);
  }
  else {
    $env_id = $environment['env_id'];
  }
  $output['apachesolr_attachments_settings'] = drupal_get_form('apachesolr_attachments_settings', $env_id);
  $output['apachesolr_attachments_index_action_form'] = drupal_get_form('apachesolr_attachments_index_action_form', $env_id);
  return $output;
}