You are here

function migrate_ui_migrate_validate in Migrate 7.2

Validate callback for the dashboard form.

1 string reference to 'migrate_ui_migrate_validate'
_migrate_ui_migrate_operations in migrate_ui/migrate_ui.pages.inc

File

migrate_ui/migrate_ui.pages.inc, line 368
Pages for managing migration processes.

Code

function migrate_ui_migrate_validate($form, &$form_state) {
  $migrations = _migrate_ui_selected_migrations($form_state['values']);
  if (empty($migrations)) {
    if (isset($form_state['values']['migrations'])) {
      form_set_error('', t('No items selected.'));
    }
  }
}