You are here

function _backup_migrate_get_source_form_item_options in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.3 includes/sources.inc \_backup_migrate_get_source_form_item_options()
  2. 6.3 includes/sources.inc \_backup_migrate_get_source_form_item_options()

Get the location options as an options array for a form item.

3 calls to _backup_migrate_get_source_form_item_options()
backup_migrate_ui_destination_restore_file_confirm in includes/destinations.inc
Ask confirmation for file restore.
backup_migrate_ui_manual_restore_form in ./backup_migrate.module
The restore/import upload form.
_backup_migrate_get_source_pulldown in includes/sources.inc
Get pulldown to select existing source options.

File

includes/sources.inc, line 144

Code

function _backup_migrate_get_source_form_item_options() {
  $out = array();
  foreach (backup_migrate_get_sources() as $key => $location) {
    $out[$key] = $location
      ->get_name();
  }
  return $out;
}