You are here

function finder_load in Finder 7.2

Same name and namespace in other branches
  1. 6 finder.module \finder_load()
  2. 7 finder.module \finder_load()

Export CRUD callback to load a finder.

Parameters

$name: The finder name.

$reset: Whether to reset the internal cache for finder objects.

Return value

The loaded finder object, or FALSE on failure.

4 calls to finder_load()
finder_autocomplete_autocomplete in plugins/element_handler/autocomplete.inc
Menu callback; get autocomplete suggestions.
finder_block_view in ./finder.module
Implements hook_block_view().
finder_page in ./finder.module
Menu callback; view a finder page.
finder_ui_i18n_string_map in modules/finder_ui/finder_ui.i18n_string.inc
Get a default map of which fields are translatable from the form.
1 string reference to 'finder_load'
finder_schema in ./finder.install
Implements hook_schema().

File

./finder.module, line 328
The finder module.

Code

function finder_load($name, $reset = FALSE) {
  $result = finder_load_multiple(array(
    $name,
  ), $reset);
  if (!empty($result[$name])) {
    return $result[$name];
  }
  return FALSE;
}