You are here

function imagecache_external_flush_form_submit in Imagecache External 7.2

Same name and namespace in other branches
  1. 6.2 imagecache_external.admin.inc \imagecache_external_flush_form_submit()
  2. 6 imagecache_external.admin.inc \imagecache_external_flush_form_submit()
  3. 7 imagecache_external.admin.inc \imagecache_external_flush_form_submit()

Submit handler.

File

./imagecache_external.admin.inc, line 108
Admin forms for this module.

Code

function imagecache_external_flush_form_submit($form, &$form_state) {
  if (imagecache_external_flush_cache()) {
    drupal_set_message(t('Flushed external images'));
  }
  else {
    drupal_set_message(t('Could not flush external images'), 'error');
  }
  $form_state['redirect'] = 'admin/config/media/imagecache_external';
}