You are here

function hansel_get_config in Hansel breadcrumbs 8

Same name and namespace in other branches
  1. 7 hansel.module \hansel_get_config()

Get Hansel configuration.

Return value

array

3 calls to hansel_get_config()
hansel_export_config in ./hansel.export.inc
Export Hansel configuration.
hansel_get_breadcrumbs in ./hansel.module
Generate breadcrumbs.
_hansel_export_get in export/hansel_export.module
Get a dump of the actual Hansel configuration

File

./hansel.module, line 435
Hansel module

Code

function hansel_get_config() {
  $config = cache_get('hansel_config');
  if (!$config || $config->data['version'] != 1) {
    $config = _hansel_build_config();
    cache_set('hansel_config', $config);
  }
  else {
    $config = $config->data;
  }
  return $config;
}