You are here

function token_flush_cache_callback in Token 7

Page callback to clear the token registry caches.

1 string reference to 'token_flush_cache_callback'
token_menu in ./token.module
Implements hook_menu().

File

./token.pages.inc, line 287
User page callbacks for the token module.

Code

function token_flush_cache_callback() {
  if (!isset($_GET['token']) || !drupal_valid_token($_GET['token'], current_path())) {
    return MENU_NOT_FOUND;
  }
  token_clear_cache();
  drupal_set_message(t('Token registry caches cleared.'));
  drupal_goto();
}