function backup_migrate_crud_delete_confirm_form_submit in Backup and Migrate 7.2
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.3 includes/crud.inc \backup_migrate_crud_delete_confirm_form_submit()
Delete a item after confirmation.
File
- includes/
crud.inc, line 159 - 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'] = BACKUP_MIGRATE_MENU_PATH . "/" . $item->type_name;
}