function _backup_migrate_destination_pulldown_set_value in Backup and Migrate 8.3
Same name and namespace in other branches
- 6.3 includes/destinations.inc \_backup_migrate_destination_pulldown_set_value()
- 7.3 includes/destinations.inc \_backup_migrate_destination_pulldown_set_value()
Set the value of a form field given it's parent array.
1 call to _backup_migrate_destination_pulldown_set_value()
- _backup_migrate_destination_pulldown_validate in includes/
destinations.inc - Validate the destination and second destination widget.
File
- includes/
destinations.inc, line 724
Code
function _backup_migrate_destination_pulldown_set_value(&$values, $parents, $value) {
$key = array_shift($parents);
if (empty($parents)) {
$values[$key] = $value;
}
else {
_backup_migrate_destination_pulldown_set_value($values[$key], $parents, $value);
}
}