function finder_load_element_handler in Finder 7
Same name and namespace in other branches
- 6 finder.module \finder_load_element_handler()
Attach element handler data to the finder.
Parameters
&$finder: The finder object.
1 call to finder_load_element_handler()
- finder_load_objects in ./
finder.module - Load objects from the database.
File
- ./
finder.module, line 1135 - The finder module.
Code
function finder_load_element_handler(&$finder) {
$element_handlers = finder_element_handlers();
if (!empty($finder->elements)) {
foreach ($finder->elements as $key => $element) {
$finder->elements[$key]->element_handler = $element_handlers[$element->element];
}
}
}