function backup_migrate_crud_edit_form in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 includes/crud.inc \backup_migrate_crud_edit_form()
- 8.3 includes/crud.inc \backup_migrate_crud_edit_form()
- 6.3 includes/crud.inc \backup_migrate_crud_edit_form()
- 6.2 includes/crud.inc \backup_migrate_crud_edit_form()
- 7.2 includes/crud.inc \backup_migrate_crud_edit_form()
A form callback to edit an item.
2 string references to 'backup_migrate_crud_edit_form'
- backup_migrate_crud_ui_create in includes/
crud.inc - Page callback to create a new item.
- backup_migrate_crud_ui_edit in includes/
crud.inc - Page callback to edit an item.
File
- includes/
crud.inc, line 203 - CRUD functions for backup and migrate types (schedules, profiles etc.).
Code
function backup_migrate_crud_edit_form($form, $form_state, $item) {
$form = $item
->edit_form();
$form['item'] = array(
'#type' => 'value',
'#value' => $item,
);
$form['#validate'][] = 'backup_migrate_crud_edit_form_validate';
$form['#submit'][] = 'backup_migrate_crud_edit_form_submit';
return $form;
}