You are here

function wordpress_migrate_review_validate in WordPress Migrate 7

Validate callback for the WordPress review form.

1 string reference to 'wordpress_migrate_review_validate'
wordpress_migrate_review_form in ./wordpress_migrate.pages.inc
Form for reviewing WordPress migrations.

File

./wordpress_migrate.pages.inc, line 381
Web UI for migrating WordPress blogs to Drupal.

Code

function wordpress_migrate_review_validate($form, &$form_state) {

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