function finder::create_element in Finder 7.2
Finder create element.
File
- includes/
finder.inc, line 106 - finder.inc
Class
- finder
- An object to contain all of the data to generate a finder, plus the member functions to build the finder, and render the output.
Code
function create_element($id = NULL) {
if (empty($id)) {
$id = 'e' . uniqid();
}
$element = (object) array(
'id' => $id,
'finder' => $this->name,
'settings' => array(),
'weight' => 0,
);
$this->elements[$element->id] =& $element;
$this
->build_elements();
$this
->defaults();
return $element;
}