You are here

function reviews_cache_clear in Reviews 7

Additional submit handler to rebuild menu after saving reviews settings.

1 string reference to 'reviews_cache_clear'
reviews_settings in includes/reviews.admin.inc
Form builder for the main settings page.

File

includes/reviews.admin.inc, line 154
This file contains all the functions necessary for the admin pages of the reviews system.

Code

function reviews_cache_clear($form, &$form_state) {
  variable_set('reviews_link_type', $form_state['values']['reviews_link_type']);
  menu_rebuild();
  cache_clear_all();
}