function icon_bundle_reset_form_submit in Icon API 7
Same name and namespace in other branches
- 8 includes/admin.inc \icon_bundle_reset_form_submit()
Submit callback for 'icon_bundle_reset_form'.
File
Code
function icon_bundle_reset_form_submit($form, &$form_state) {
// Redirect to the overview form after submit.
$destination = ICON_ADMIN_PATH;
if (isset($_GET['destination'])) {
$destination = array(
'destination' => $_GET['destination'],
);
}
$form_state['redirect'] = array(
$destination,
);
if (!empty($form_state['values']['confirm'])) {
icon_bundle_delete($form_state['build_info']['args'][0]);
}
}