You are here

function backup_migrate_create_source in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 6.3 includes/sources.inc \backup_migrate_create_source()
  2. 7.3 includes/sources.inc \backup_migrate_create_source()

Create a source object of the given type with the given params.

File

includes/sources.inc, line 36

Code

function backup_migrate_create_source($subtype, $params = array()) {
  $params['subtype'] = $subtype;
  return backup_migrate_crud_create_item('source', $params);
}