function campaignmonitor_clear_cache_submit in Campaign Monitor 7
Same name and namespace in other branches
- 8 includes/campaignmonitor.admin.inc \campaignmonitor_clear_cache_submit()
- 6.3 includes/campaignmonitor.admin.inc \campaignmonitor_clear_cache_submit()
Clear the caches used by Campaign Monitor.
1 string reference to 'campaignmonitor_clear_cache_submit'
- campaignmonitor_admin_settings_general in includes/
campaignmonitor.admin.inc - Creates the Campaign Monitor settings form.
File
- includes/
campaignmonitor.admin.inc, line 148 - Implementation of the administration interface for the module.
Code
function campaignmonitor_clear_cache_submit($form, &$form_state) {
CampaignMonitor::getConnector($form_state['values']['campaignmonitor_account']['api_key'], $form_state['values']['campaignmonitor_account']['client_id'])
->clearCache();
drupal_set_message(t('Campaign Monitor cache cleared.'), 'status');
// Rehash blocks, thereby rebuilding the DB block cache.
_block_rehash();
}