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);
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.