You are here

function quail_api_reset_cache in Quail API 7

Resets all static caches provided by this module.

1 call to quail_api_reset_cache()
quail_api_disable in ./quail_api.install
Implementation of hook_disable().
1 string reference to 'quail_api_reset_cache'
quail_api_disable in ./quail_api.install
Implementation of hook_disable().

File

./quail_api.module, line 912
Module file for the quail api.

Code

function quail_api_reset_cache() {
  drupal_static_reset('quail_api_get_standards');
  drupal_static_reset('quail_api_get_display_levels');
  drupal_static_reset('quail_api_get_validation_methods');
  cache_clear_all('quail_api_standards', 'cache', TRUE);
  cache_clear_all('quail_api_display_levels', 'cache', TRUE);
  cache_clear_all('quail_api_validation_methods', 'cache', TRUE);
}