You are here

function og_ui_user_admin_account_validate in Organic groups 7

File

og_ui/og_ui.admin.inc, line 281
Admin settings for Organic groups module.

Code

function og_ui_user_admin_account_validate($form, &$form_state) {
  $form_state['values']['accounts'] = array_filter($form_state['values']['accounts']);
  if (count($form_state['values']['accounts']) == 0) {
    form_set_error('', t('No users selected.'));
  }
}