You are here

function backup_migrate_crud_create_item in Backup and Migrate 7.2

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.3 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
Implementation of hook_backup_migrate_destinations().
backup_migrate_perform_restore in ./backup_migrate.module
Restore from a file in the given destination.
backup_migrate_ui_manual_backup_form_submit in ./backup_migrate.module
Submit the form. Save the values as defaults if desired and output the backup file.
_backup_migrate_setup_database_defaults in ./backup_migrate.install

File

includes/crud.inc, line 214
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);
  }
}