You are here

function search_file_attachments_java_path in Search File Attachments 7

Returns the path to the java binary.

Return value

string

1 call to search_file_attachments_java_path()
search_file_attachments_extract_tika in ./search_file_attachments.inc
Extract file content with Apache Tika.
3 string references to 'search_file_attachments_java_path'
search_file_attachments_settings_form in ./search_file_attachments.admin.inc
Page callback to show the settings for the attachments.
search_file_attachments_settings_form_validate in ./search_file_attachments.admin.inc
Validation handler for the settings form.
search_file_attachments_uninstall in ./search_file_attachments.install
Implements hook_uninstall().

File

./search_file_attachments.inc, line 33
Heler functions, to hold the .module file clean and smart.

Code

function search_file_attachments_java_path() {
  $settings_path = variable_get('search_file_attachments_java_path', '');
  $path = !empty($settings_path) ? $settings_path : 'java';
  return $path;
}