function backup_migrate_item::edit_form

cis7 crud.inc backup_migrate_item::edit_form()
cle7 crud.inc backup_migrate_item::edit_form()
elmsmedia7 crud.inc backup_migrate_item::edit_form()
icor7 crud.inc backup_migrate_item::edit_form()
meedjum_blog7 crud.inc backup_migrate_item::edit_form()
mooc7 crud.inc backup_migrate_item::edit_form()

Get the edit form for the item.

3 methods override backup_migrate_item::edit_form()
backup_migrate_destination::edit_form in sites/all/modules/ulmus/backup_migrate/includes/destinations.inc
Get the edit form for the item.
backup_migrate_profile::edit_form in sites/all/modules/ulmus/backup_migrate/includes/profiles.inc
Get the edit form.
backup_migrate_schedule::edit_form in sites/all/modules/ulmus/backup_migrate/includes/schedules.inc
Get the edit form.

File

sites/all/modules/ulmus/backup_migrate/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;
}