1.12.x admin_bar.module admin_bar_form_alter_flush_cache_submit($form, &$form_state)
1.10.x admin_bar.module admin_bar_form_alter_flush_cache_submit($form, &$form_state)
1.11.x admin_bar.module admin_bar_form_alter_flush_cache_submit($form, &$form_state)
1.7.x admin_bar.module admin_bar_form_alter_flush_cache_submit($form, &$form_state)

Form submission handler to flush Administration bar caches.

File

modules/admin_bar/admin_bar.module, line 579
Render an administrative bar as a dropdown menu at the top of the window.

Code

function admin_bar_form_alter_flush_cache_submit($form, &$form_state) {
  cache('admin_bar')->flush();
}