You are here

function search_files_edit in Search Files 7.2

Edits or adds a helper.

1 string reference to 'search_files_edit'
search_files_menu in ./search_files.module
Implements hook_menu().

File

./search_files.module, line 320
Organizes and provides helper functions for extracting text from files.

Code

function search_files_edit($hid = 0) {
  if ($hid) {
    $values = db_query('SELECT * FROM {search_files_helpers} WHERE id = :id', array(
      ':id' => $hid,
    ))
      ->fetchAssoc();
    return drupal_get_form('search_files_helper_edit_form', $values);
  }
  return drupal_get_form('search_files_helper_edit_form');
}