function boost_rules_action_clear_page_form in Boost 6
Action clear page from cache configuration form.
File
- ./
boost.rules.inc, line 41 - Integration with the rules module
Code
function boost_rules_action_clear_page_form($settings, &$form) {
$settings += array(
'page' => '',
);
$form['settings']['page'] = array(
'#type' => 'textarea',
'#title' => t('Page URL'),
'#default_value' => $settings['page'],
'#description' => t('The short URL of the page to clear from the Boost cache.'),
);
$form['settings']['expire_now'] = array(
'#type' => 'checkbox',
'#title' => t('Clear cache file(s) immediately.'),
'#default_value' => $settings['expire_now'],
'#description' => t('If unchecked, cache file(s) will be cleared on the next cron run.'),
);
}