You are here

function backup_migrate_crud_get_item in Backup and Migrate 6.3

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

Get an item of the specified type.

File

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

Code

function backup_migrate_crud_get_item($type, $id) {
  if ($type = backup_migrate_crud_type_load($type)) {
    return $type
      ->item($id);
  }
}