You are here

function search_files_get_file_extensions in Search Files 7.2

Same name and namespace in other branches
  1. 5 search_files.module \search_files_get_file_extensions()
  2. 6.2 search_files.module \search_files_get_file_extensions()

Returns an array of file helper extensions and names.

Return value

Array whose keys are file extensions, and whose values are the helper names assigned to them.

File

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

Code

function search_files_get_file_extensions() {
  $extensions = array();
  $result = db_query("SELECT extension, name FROM {search_files_helpers}")
    ->fetchAll();
  foreach ($result as $helper) {
    $extensions[$helper->extension] = $helper->name;
  }
  return $extensions;
}