function backup_migrate_crud_ui_delete in Backup and Migrate 6.2
Same name and namespace in other branches
- 8.2 includes/crud.inc \backup_migrate_crud_ui_delete()
- 8.3 includes/crud.inc \backup_migrate_crud_ui_delete()
- 6.3 includes/crud.inc \backup_migrate_crud_ui_delete()
- 7.3 includes/crud.inc \backup_migrate_crud_ui_delete()
- 7.2 includes/crud.inc \backup_migrate_crud_ui_delete()
Page callback to delete an item.
1 string reference to 'backup_migrate_crud_ui_delete'
- backup_migrate_item::get_menu_items in includes/
crud.inc - Get the menu items for manipulating this type.
File
- includes/
crud.inc, line 135 - CRUD functions for backup and migrate types (schedules, profiles etc.).
Code
function backup_migrate_crud_ui_delete($item_id = NULL) {
if ($type = backup_migrate_crud_type_load(arg(BACKUP_MIGRATE_MENU_DEPTH))) {
if ($item_id && ($item = $type
->item($item_id))) {
return drupal_get_form('backup_migrate_crud_delete_confirm_form', $item);
}
drupal_goto('admin/content/backup_migrate/' . arg(BACKUP_MIGRATE_MENU_DEPTH));
}
}