You are here

function backup_migrate_crud_ui_export in Backup and Migrate 8.3

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

Export an item.

1 string reference to 'backup_migrate_crud_ui_export'
backup_migrate_item::get_menu_items in includes/crud.inc
Get the menu items for manipulating this type.

File

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

Code

function backup_migrate_crud_ui_export($type, $item_id = NULL) {
  if ($type = backup_migrate_crud_type_load($type)) {
    if ($item_id && ($item = $type
      ->item($item_id))) {
      return drupal_get_form('backup_migrate_crud_export_form', $item
        ->export());
    }
    drupal_goto($type
      ->get_settings_path());
  }
}