You are here

function calendar_clear_all in Calendar 5

Same name and namespace in other branches
  1. 5.2 calendar.module \calendar_clear_all()

Empty or reset cached values.

Parameters

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

4 calls to calendar_clear_all()
calendar_disable in ./calendar.install
Implementation of hook_disable(). Empty the calendar caches.
calendar_enable in ./calendar.install
Implementation of hook_enable(). Reset the calendar caches.
calendar_install in ./calendar.install
Implementation of hook_install(). Reset the calendar caches.
calendar_uninstall in ./calendar.install
Implementation of hook_uninstall().

File

./calendar.module, line 1446
Adds calendar filtering and displays to Views.

Code

function calendar_clear_all($remove = FALSE) {
  if ($remove) {
    cache_clear_all('calendar_views', 'cache_views');
    cache_clear_all('calendar_fields', 'cache_views');
  }
  else {
    calendar_fields(TRUE);
    calendar_info(TRUE);
  }
}