You are here

function finder::setting in Finder 7.2

Finder setting.

Parameters

$setting: The name of the setting.

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

Return value

The setting or default value.

6 calls to finder::setting()
finder::arguments in includes/finder.inc
Finder arguments.
finder::find in includes/finder.inc
Finder find.
finder::render in includes/finder.inc
Finder render.
finder::results in includes/finder.inc
Finder results.
finder::validate in includes/finder.inc
Make sure the finder is valid.

... See full list

File

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