You are here

function hierarchical_select_common_config_get in Hierarchical Select 5.3

Same name and namespace in other branches
  1. 6.3 includes/common.inc \hierarchical_select_common_config_get()
  2. 7.3 includes/common.inc \hierarchical_select_common_config_get()

Retrieve a config. If certain settings are not yet configured by the user, defaults will be set. These defaults can also be overriden. This allows modules to provide their own meaningful defaults.

Parameters

$config_id: A config id, typically of the form "module-someid", e.g. "taxonomy-vid".

$defaults_override: Optionally override the defaults.

6 calls to hierarchical_select_common_config_get()
hierarchical_select_admin_export in ./hierarchical_select.admin.inc
Form definition; config export form.
hierarchical_select_common_config_apply in includes/common.inc
Apply a config to a form item.
hierarchical_select_common_config_form in includes/common.inc
Form definition of the hierarchical_select_common_config_form form.
hs_content_taxonomy_field_formatter in modules/hs_content_taxonomy.module
Implemenation of hook_field_formatter().
hs_content_taxonomy_views_form_alter in modules/hs_content_taxonomy_views.module
Implementation of hook_form_alter().

... See full list

File

includes/common.inc, line 18
Functions used by more than one Hierarchical Select implementation.

Code

function hierarchical_select_common_config_get($config_id, $defaults_override = array()) {
  $config = variable_get('hs_config_' . $config_id, array());
  return _hierarchical_select_inherit_default_config($config, $defaults_override);
}