You are here

function backup_migrate_create_source in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.3 includes/sources.inc \backup_migrate_create_source()
  2. 6.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 37

Code

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