function _backup_migrate_destination_pulldown_validate in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.3 includes/destinations.inc \_backup_migrate_destination_pulldown_validate()
- 7.3 includes/destinations.inc \_backup_migrate_destination_pulldown_validate()
Validate the destination and second destination widget.
1 string reference to '_backup_migrate_destination_pulldown_validate'
- _backup_migrate_get_destination_pulldown in includes/
destinations.inc - Get pulldown to select existing source options.
File
- includes/
destinations.inc, line 567
Code
function _backup_migrate_destination_pulldown_validate($element, &$form_state, $form) {
if (empty($element['copy']['#value']) || $element['copy_destination']['copy_destination_id']['#value'] == $element['destination_id']['#value']) {
_backup_migrate_destination_pulldown_set_value($form_state['values'], $element['copy_destination']['copy_destination_id']['#parents'], '');
}
}