function backup_migrate_item::edit_form in Backup and Migrate 8.2
Same name and namespace in other branches
- 8.3 includes/crud.inc \backup_migrate_item::edit_form()
- 6.3 includes/crud.inc \backup_migrate_item::edit_form()
- 6.2 includes/crud.inc \backup_migrate_item::edit_form()
- 7.3 includes/crud.inc \backup_migrate_item::edit_form()
- 7.2 includes/crud.inc \backup_migrate_item::edit_form()
Get the edit form for the item.
3 calls to backup_migrate_item::edit_form()
- backup_migrate_destination::edit_form in includes/
destinations.inc - Get the edit form for the item.
- backup_migrate_profile::edit_form in includes/
profiles.inc - Get the edit form.
- backup_migrate_schedule::edit_form in includes/
schedules.inc - Get the edit form.
3 methods override backup_migrate_item::edit_form()
- backup_migrate_destination::edit_form in includes/
destinations.inc - Get the edit form for the item.
- backup_migrate_profile::edit_form in includes/
profiles.inc - Get the edit form.
- backup_migrate_schedule::edit_form in includes/
schedules.inc - Get the edit form.
File
- includes/
crud.inc, line 498 - CRUD functions for backup and migrate types (schedules, profiles etc.).
Class
- backup_migrate_item
- A base class for items which can be stored in the database, listed, edited, deleted etc.
Code
function edit_form() {
$form = array();
$form['item'] = array(
'#type' => 'value',
'#value' => $this,
);
$form['id'] = array(
'#type' => 'value',
'#value' => $this
->get_id(),
);
$form['actions'] = array(
'#prefix' => '<div class="container-inline">',
'#suffix' => '</div>',
'#weight' => 99,
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save !type', array(
'!type' => t($this->singular),
)),
);
$form['actions']['cancel'] = array(
'#markup' => l(t('Cancel'), BACKUP_MIGRATE_MENU_PATH . '/destination'),
);
return $form;
}