You are here

function date_clear_all in Date 6

Same name and namespace in other branches
  1. 5.2 date/date.module \date_clear_all()
  2. 5 date.module \date_clear_all()

Empty or reset cached values.

Parameters

$remove: whether or not to completely remove the caches.

4 calls to date_clear_all()
date_disable in date/date.install
Implementation of hook_disable(). Empty the date caches.
date_enable in date/date.install
Implementation of hook_enable(). Reset the calendar caches.
date_install in date/date.install
Implementation of hook_install(). Reset the date caches.
date_uninstall in date/date.install
Implementation of hook_uninstall().
1 string reference to 'date_clear_all'
date_form_alter in date/date.module
Implementation of hook_form_alter(). Make sure date information gets updated.

File

date/date.module, line 289
Defines date/time field types for the Content Construction Kit (CCK).

Code

function date_clear_all($remove = FALSE) {
  cache_clear_all('date_', 'cache', '*');
  if (module_exists('views')) {
    if ($remove) {
      cache_clear_all('date_browser_views', 'cache_views');
    }
    else {

      //date_views_browser_get_views(TRUE);
    }
  }
}