You are here

function facetapi_setting_set in Facet API 6

Sets a Facet API configuration setting.

@reutrn NULL

Parameters

$setting: A string containing the facet configuration setting name.

$value: A mixed value containing the setting value.

...: Additional arguments that define which item the setting applies to. For example, optionally pass the machine readable name of the searcher, realm, and facet in that order to add granularity the setting applies to.

1 call to facetapi_setting_set()
facetapi_facet_status_set in ./facetapi.module
Sets the enabled/disabled status of a facet. It is recommended that the facetapi_facet_enable() and facetapi_facet_disable() functions are used in favor of calling this function directly.

File

./facetapi.module, line 813
An abstracted facet API that can be used by various search backens.

Code

function facetapi_setting_set($setting, $value) {
  $args = func_get_args();
  unset($args[1]);
  $variable = join(':', array_merge(array(
    'facetapi',
  ), $args));
  variable_set($variable, $value);
}