You are here

function backup_migrate_ui_profile_configure_form in Backup and Migrate 5.2

Get a form to configure the profile.

2 string references to 'backup_migrate_ui_profile_configure_form'
backup_migrate_ui_profile_configure in includes/profiles.inc
Get a form to configure the profile.
backup_migrate_ui_profile_create in includes/profiles.inc
Get a form to create a new profile.

File

includes/profiles.inc, line 173
All of the settings profiles handling code for Backup and Migrate.

Code

function backup_migrate_ui_profile_configure_form($profile) {
  if ($profile) {
    $form = array();
    $form['name'] = array(
      "#type" => "textfield",
      "#title" => t("Profile Name"),
      "#default_value" => $profile['name'],
    );
    $form += _backup_migrate_ui_backup_settings_form($profile);
    $form['profile_id'] = array(
      '#type' => 'value',
      '#value' => $profile['profile_id'],
    );
    $form['submit'] = array(
      '#type' => 'submit',
      '#value' => t('Save Profile'),
    );
    return $form;
  }
  return array();
}