function purge_item_form_submit in Purge 7.2
Form submit for the item form.
File
- includes/
purge_ui.inc, line 509 - Provides administrative interface for the Purge module.
Code
function purge_item_form_submit($form, &$form_state) {
// Get the bundle from the current form state.
$bundle = purge_item_form_load($form, $form_state);
// Save it.
$bundle
->save();
$item_type = $form_state['values']['item_type'];
drupal_set_message(t('@item_type @item_name was saved.', array(
'@item_type' => $bundle->type[$item_type]->name,
'@item_name' => $form_state['values']['name'],
)));
// Redirect to main admin page.
$form_state['redirect'] = 'admin/config/system/purge';
return $form;
}