You are here

function apachesolr_attachments_settings in Apache Solr Attachments 5

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

Displays the Attachment Settings Form.

1 string reference to 'apachesolr_attachments_settings'
apachesolr_attachments_menu in ./apachesolr_attachments.module
Implementation of hook_menu().

File

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

Code

function apachesolr_attachments_settings() {
  $instruction_text = 'For each type of attachment, enter the path to the helper application installed on your server. "%file%" is a placeholder for the path of the attachment file and is required. If you don\'t want to search a type of attachment, leave the path setting blank (i.e., remove the content from the appropriate field below).';
  $form['instructions'] = array(
    '#type' => 'markup',
    '#value' => t($instruction_text),
  );
  $form['apachesolr_attachment_pdf_path'] = array(
    '#type' => 'textfield',
    '#title' => t('PDF Helper'),
    '#size' => 50,
    '#maxlength' => 100,
    '#description' => t("The full path to the helper for application/pdf files, plus any other parameters needed by the helper."),
    '#default_value' => variable_get('apachesolr_attachment_pdf_path', ''),
  );
  $form['apachesolr_attachment_txt_path'] = array(
    '#type' => 'textfield',
    '#title' => t('Text Helper'),
    '#size' => 50,
    '#maxlength' => 100,
    '#description' => t("The full path to the helper for text/plain files, plus any other parameters needed by the helper."),
    '#default_value' => variable_get('apachesolr_attachment_txt_path', ''),
  );
  $form['apachesolr_attachment_doc_path'] = array(
    '#type' => 'textfield',
    '#title' => t('Word Doc Helper'),
    '#size' => 50,
    '#maxlength' => 100,
    '#description' => t("The full path to the helper for application/msword files, plus any other parameters needed by the helper."),
    '#default_value' => variable_get('apachesolr_attachment_doc_path', ''),
  );
  return system_settings_form($form);
}