You are here

function facetapi_is_overridden in Facet API 6.3

Same name and namespace in other branches
  1. 7.2 facetapi.admin.inc \facetapi_is_overridden()
  2. 7 facetapi.admin.inc \facetapi_is_overridden()

Tests whether a configuration setting is overridden or not.

Parameters

stdClass $settings: The configuration settings being tested.

Return value

boolean TRUE if the settings are overridden, FALSE otherwise.

2 calls to facetapi_is_overridden()
facetapi_realm_settings_form in ./facetapi.admin.inc
Form constructor for the realm settings form.
facetapi_revert_form in ./facetapi.admin.inc
Form constructor for the revert form.

File

./facetapi.admin.inc, line 17
Admin page callbacks for the Facet API module.

Code

function facetapi_is_overridden(stdClass $settings) {
  return $settings->export_type & EXPORT_IN_CODE && $settings->export_type & EXPORT_IN_DATABASE;
}