function _backup_migrate_get_source_pulldown in Backup and Migrate 7.2
Same name and namespace in other branches
- 8.2 includes/destinations.inc \_backup_migrate_get_source_pulldown()
- 8.3 includes/sources.inc \_backup_migrate_get_source_pulldown()
- 6.3 includes/sources.inc \_backup_migrate_get_source_pulldown()
- 6.2 includes/destinations.inc \_backup_migrate_get_source_pulldown()
- 7.3 includes/sources.inc \_backup_migrate_get_source_pulldown()
Get pulldown to select existing source options.
2 calls to _backup_migrate_get_source_pulldown()
- backup_migrate_ui_manual_quick_backup_form in ./
backup_migrate.module - The quick backup form.
- _backup_migrate_get_source_form in includes/
destinations.inc - Get the source options as a form element.
File
- includes/
destinations.inc, line 492
Code
function _backup_migrate_get_source_pulldown($source_id = NULL) {
backup_migrate_include('destinations');
$sources = _backup_migrate_get_destination_form_item_options('source');
$form = array(
"#type" => "select",
"#title" => t("Backup Source"),
"#options" => _backup_migrate_get_destination_form_item_options('source'),
"#default_value" => $source_id,
);
return $form;
}