You are here

function search_files_helper_name in Search Files 7.2

Same name and namespace in other branches
  1. 6.2 search_files.module \search_files_helper_name()

Returns the name of a helper for a given extension.

Parameters

$ext: Extension to find name of.

Return value

Name of extension. Returns nothing if not found.

File

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

Code

function search_files_helper_name($ext) {
  $result = db_query("SELECT name FROM {search_files_helpers} WHERE extension = :ext", array(
    ':ext' => $ext,
  ))
    ->fetchField();
  if ($result) {
    return $result;
  }
}