You are here

apachesolr_attachments.install in Apache Solr Attachments 5

File

apachesolr_attachments.install
View source
<?php

/**
 * Implementation of hook_install().
 */
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'");
}
function apachesolr_attachments_uninstall() {
  variable_del('apachesolr_attachment_pdf_path');
  variable_del('apachesolr_attachment_txt_path');
}