You are here

function backup_migrate_crud_create_item in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.2 includes/crud.inc \backup_migrate_crud_create_item()
  2. 8.3 includes/crud.inc \backup_migrate_crud_create_item()
  3. 6.3 includes/crud.inc \backup_migrate_crud_create_item()
  4. 6.2 includes/crud.inc \backup_migrate_crud_create_item()
  5. 7.2 includes/crud.inc \backup_migrate_crud_create_item()

Create a new item of the given type.

4 calls to backup_migrate_crud_create_item()
backup_migrate_backup_migrate_profiles in includes/profiles.inc
Implements hook_backup_migrate_profiles().
backup_migrate_create_destination in includes/destinations.inc
Create a destination object of the given type with the given params.
backup_migrate_create_source in includes/sources.inc
Create a source object of the given type with the given params.
backup_migrate_perform_restore in ./backup_migrate.module
Restore from a file in the given destination.

File

includes/crud.inc, line 389
CRUD functions for backup and migrate types (schedules, profiles etc.).

Code

function backup_migrate_crud_create_item($type, $params) {
  if ($type = backup_migrate_crud_type_load($type)) {
    return $type
      ->create($params);
  }
}