function backup_migrate_crud_delete_confirm_form_submit in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 includes/crud.inc \backup_migrate_crud_delete_confirm_form_submit()
- 8.3 includes/crud.inc \backup_migrate_crud_delete_confirm_form_submit()
- 6.3 includes/crud.inc \backup_migrate_crud_delete_confirm_form_submit()
- 6.2 includes/crud.inc \backup_migrate_crud_delete_confirm_form_submit()
- 7.2 includes/crud.inc \backup_migrate_crud_delete_confirm_form_submit()
Delete a item after confirmation.
File
- includes/
crud.inc, line 269 - CRUD functions for backup and migrate types (schedules, profiles etc.).
Code
function backup_migrate_crud_delete_confirm_form_submit($form, &$form_state) {
if ($form_state['values']['confirm']) {
$item = $form_state['values']['item'];
$item
->delete();
}
$form_state['redirect'] = $item
->get_settings_path();
}