You are here

function eck_init in Entity Construction Kit (ECK) 7.3

Same name and namespace in other branches
  1. 7.2 eck.module \eck_init()

Implements hook_init().

File

./eck.module, line 1133

Code

function eck_init() {

  // Lets initialize our global caches.
  global $_eck_entity_types_cache;
  global $_eck_bundles_cache;
  $_eck_entity_types_cache = new ECKCache("entity_types");
  $_eck_bundles_cache = new ECKCache("bundles");
  if (variable_get("eck_clear_caches", FALSE)) {
    variable_set("eck_clear_caches", FALSE);
    eck_clean_up();
  }
}