You are here

function backup_migrate_crud_create_item in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 8.2 includes/crud.inc \backup_migrate_crud_create_item()
  2. 6.3 includes/crud.inc \backup_migrate_crud_create_item()
  3. 6.2 includes/crud.inc \backup_migrate_crud_create_item()
  4. 7.3 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.

5 calls to backup_migrate_crud_create_item()
backup_migrate_backup_migrate_profiles in includes/profiles.inc
Implementation of hook_backup_migrate_profiles().
backup_migrate_backup_migrate_schedules in ./backup_migrate.module
Implements hook_backup_migrate_destinations().
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);
  }
}