You are here

function poormanscron_site_information_settings_submit in Poormanscron 6.2

Same name and namespace in other branches
  1. 5.2 poormanscron.module \poormanscron_site_information_settings_submit()

Form submit callback; clears the page cache if cron settings were changed.

1 string reference to 'poormanscron_site_information_settings_submit'
poormanscron_form_system_site_information_settings_alter in ./poormanscron.module
Implements hook_form_FORM_ID_alter().

File

./poormanscron.module, line 142
A module which runs Drupal cron jobs without the cron application.

Code

function poormanscron_site_information_settings_submit($form, $form_state) {
  if (variable_get('cron_safe_threshold', 10800) != $form_state['values']['cron_safe_threshold']) {
    cache_clear_all('*', 'cache_page', TRUE);
  }
}