You are here

function content_enable in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 5 content.module \content_enable()
  2. 6.3 content.install \content_enable()
  3. 6.2 content.install \content_enable()

Implementation of hook_enable().

File

./content.install, line 85

Code

function content_enable() {

  // Make sure old data is emptied out of the caches, since it
  // may no longer be valid since the module was last enabled,
  // especially if not all the same field modules are enabled
  // as before. Especially needed during updates.
  cache_clear_all('*', 'cache_content', TRUE);
  content_clear_type_cache(TRUE);
}