You are here

function imagecache_token_settings_form_submit in Imagecache Token 7

FormAPI submission callback for imagecache_token_settings_form.

1 string reference to 'imagecache_token_settings_form_submit'
imagecache_token_settings_form in ./imagecache_token.admin.inc
FormAPI callback to load the imagecache_token settings form.

File

./imagecache_token.admin.inc, line 91
Settings form for the Imagecache Token module.

Code

function imagecache_token_settings_form_submit($form, &$form_state) {

  // Make sure the 'images' field isn't saved.
  unset($form_state['values']['imagecache_token_images']);

  // Clear the token caches.
  cache_clear_all('*', 'cache_token', TRUE);
  drupal_static_reset('token_info');

  // Reload the token info.
  token_info();
}