function acquia_purge_manualpurge_form_submit in Acquia Purge 6
Callback to drupal_get_form: handle the form submit.
File
- ./
acquia_purge.admin.inc, line 152 - Admin page callbacks and theme functions for the Acquia Purge module.
Code
function acquia_purge_manualpurge_form_submit($form, &$form_state) {
foreach ($form_state['values']['paths']['path'] as $id => $value) {
if (empty($value)) {
unset($form_state['values']['paths']['path'][$id]);
}
}
acquia_purge_purge_paths($form_state['values']['paths']['path']);
}