You are here

function similarterms_admin_settings_submit in Similar By Terms 5

Same name and namespace in other branches
  1. 6 similarterms.admin.inc \similarterms_admin_settings_submit()
  2. 7 similarterms.admin.inc \similarterms_admin_settings_submit()

File

./similarterms.module, line 329
Similar By Terms module displays a block with similar content based on taxonomy terms.

Code

function similarterms_admin_settings_submit($form_id, $form_values) {
  if ($form_values['similarterms_clear_cache']) {
    cache_clear_all('*', 'cache_similarterms', TRUE);
    drupal_set_message(t('Similarterms Block Cache is now cleared'));
  }
}