You are here

function apachesolr_attachments_install in Apache Solr Attachments 5

Same name and namespace in other branches
  1. 6 apachesolr_attachments.install \apachesolr_attachments_install()
  2. 6.2 apachesolr_attachments.install \apachesolr_attachments_install()

Implementation of hook_install().

File

./apachesolr_attachments.install, line 6

Code

function apachesolr_attachments_install() {
  variable_set('apachesolr_attachment_pdf_path', '/usr/local/bin/pdftotext "%file%" -');
  variable_set('apachesolr_attachment_txt_path', '/bin/cat "%file%"');

  // Module weights: put after apachesolr_search.
  db_query("UPDATE {system} SET weight = 10 WHERE name = 'apachesolr_attachments'");
}