You are here

function backup_migrate_crud_item_exists in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 6.3 includes/crud.inc \backup_migrate_crud_item_exists()
  2. 7.3 includes/crud.inc \backup_migrate_crud_item_exists()

Does a crud item with the given name exist.

Callback for the 'machine_name' form type.

1 string reference to 'backup_migrate_crud_item_exists'
backup_migrate_item::edit_form in includes/crud.inc
Get the edit form for the item.

File

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

Code

function backup_migrate_crud_item_exists($machine_name, $element, $form_state) {
  return $form_state['values']['item']
    ->item_exists($machine_name);
}