You are here

function migrate_ui_dashboard_validate in Migrate 6.2

Validate callback for the dashboard form.

1 string reference to 'migrate_ui_dashboard_validate'
_migrate_ui_dashboard_form in migrate_ui/migrate_ui.pages.inc
Form for reviewing migrations.

File

migrate_ui/migrate_ui.pages.inc, line 228

Code

function migrate_ui_dashboard_validate($form, &$form_state) {

  // Error if there are no items to select.
  if (!is_array($form_state['values']['dashboard']) || !count(array_filter($form_state['values']['dashboard']))) {
    form_set_error('', t('No items selected.'));
  }
}