You are here

function facetapi_get_settings_path in Facet API 7.2

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

Returns the path to a facet's settings page.

Parameters

$searcher: The machine readable name of the searcher.

$realm_name: The machine readable name of the realm.

$facet_name: The machine readable name of the realm.

$op: The operation being requested, one of the following values:

  • edit: The display settings form.
  • dependencies: The dependency settings form.
  • filters: The filters settings form.
  • export: The settings export form.

Return value

The path to the settings page.

1 call to facetapi_get_settings_path()
facetapi_realm_settings_form in ./facetapi.admin.inc
Form constructor for the realm settings form.

File

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

Code

function facetapi_get_settings_path($searcher, $realm_name, $facet_name, $op) {
  $path_parts = array(
    'admin',
    'config',
    'search',
    'facetapi',
  );
  $path_parts[] = $searcher;
  $path_parts[] = $realm_name;
  $path_parts[] = $facet_name;
  $path_parts[] = $op;
  return join('/', $path_parts);
}