You are here

function views_bulk_operations_change_owner_action_validate in Views Bulk Operations (VBO) 7.3

Action form validate function.

Checks that the submitted text is a valid username.

File

actions/change_owner.action.inc, line 51
Implements a generic entity change owner action.

Code

function views_bulk_operations_change_owner_action_validate($form, $form_state) {
  if (!user_load_by_name($form_state['values']['owner_username'])) {
    form_set_error('owner_username', t('Valid username required.'));
  }
}