function backup_migrate_profile::set_source in Backup and Migrate 8.2
Same name and namespace in other branches
- 8.3 includes/profiles.inc \backup_migrate_profile::set_source()
- 6.3 includes/profiles.inc \backup_migrate_profile::set_source()
- 6.2 includes/profiles.inc \backup_migrate_profile::set_source()
- 7.3 includes/profiles.inc \backup_migrate_profile::set_source()
- 7.2 includes/profiles.inc \backup_migrate_profile::set_source()
Set the source of this setings profile. Takes either a source object or source id.
File
- includes/
profiles.inc, line 241
Class
- backup_migrate_profile
- A profile class for crud operations.
Code
function set_source($source) {
if (is_object($source)) {
$this->source = $source;
$this->source_id = $source
->get_id();
}
else {
$this->source_id = $source;
unset($this->source);
}
}