You are here

function agenda_clear in Agenda 7

Same name and namespace in other branches
  1. 6.2 agenda.admin.php \agenda_clear()
  2. 6 agenda.admin.php \agenda_clear()
  3. 7.2 agenda.admin.php \agenda_clear()

Agenda clear cache

1 string reference to 'agenda_clear'
agenda_menu in ./agenda.module
Implements hook_menu().

File

./agenda.admin.php, line 466
Administration interface for the agenda module

Code

function agenda_clear($bid) {
  drupal_set_message(t('Cache cleared for agenda block'));
  cache_clear_all('agenda_block_' . $bid, 'cache');
  drupal_goto('admin/config/services/agenda');
}