You are here

function taxonomy_action_validate in Views Bulk Operations (VBO) 5

File

./taxonomy.action.inc, line 111

Code

function taxonomy_action_validate($form_id, $form_values) {
  if ($form_values['do'] != TAXONOMY_ACTION_REPLACE) {
    $terms = taxonomy_action_parse_terms($form_values['taxonomy']);
    if (empty($terms)) {
      form_set_error('terms', t('You did not select any term nor did you choose to replace existing terms. Please select one or more terms or choose to replace the terms.'));
    }
  }
}