You are here

function finder::esetting in Finder 7.2

Finder element setting.

Parameters

$element: The element object.

$setting: The name of the setting.

$default: The value to return if there is no setting.

Return value

The setting or default value.

7 calls to finder::esetting()
finder::choice_find in includes/finder.inc
Finder choice find.
finder::choice_repopulate in includes/finder.inc
Finder choice repopulate.
finder::element_arguments in includes/finder.inc
Finder element arguments.
finder::find in includes/finder.inc
Finder find.
finder::results in includes/finder.inc
Finder results.

... See full list

File

includes/finder.inc, line 1128
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 esetting($element, $setting, $default = NULL) {
  if (isset($element->settings[$setting])) {
    return $element->settings[$setting];
  }
  return $default;
}