You are here

function facetapi_get_settings_path in Facet API 6.3

Same name and namespace in other branches
  1. 7.2 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 296
Admin page callbacks for the Facet API module.

Code

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