You are here

function finder_element_load in Finder 7

Same name and namespace in other branches
  1. 6 finder.module \finder_element_load()

Load a finder element object from the database.

Parameters

$finder_element_id: The finder element ID.

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

Return value

The loaded finder element object, or FALSE on failure.

2 calls to finder_element_load()
finder_element_delete in ./finder.module
Delete a finder element.
finder_i18nstrings_map_from_form in modules/finder_i18nstrings/finder_i18nstrings.module
Get a default map of which fields are translatable from the form.

File

./finder.module, line 492
The finder module.

Code

function finder_element_load($finder_element_id, $reset = FALSE) {
  $finder_elements = finder_element_load_multiple(array(
    $finder_element_id,
  ), array(), $reset);
  return $finder_elements ? $finder_elements[$finder_element_id] : FALSE;
}