function backup_migrate_profile::set_source

cis7 profiles.inc backup_migrate_profile::set_source($source)
cle7 profiles.inc backup_migrate_profile::set_source($source)
elmsmedia7 profiles.inc backup_migrate_profile::set_source($source)
icor7 profiles.inc backup_migrate_profile::set_source($source)
meedjum_blog7 profiles.inc backup_migrate_profile::set_source($source)
mooc7 profiles.inc backup_migrate_profile::set_source($source)

Set the source of this setings profile. Takes either a source object or source id.

File

sites/all/modules/ulmus/backup_migrate/includes/profiles.inc, line 246
All of the settings profiles handling code for Backup and Migrate.

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);
  }
}