You are here

function group_options_form_validate in Group 7

Options form validate callback.

1 string reference to 'group_options_form_validate'
group_options_form in admin/group.inc
Builds the group administration options.

File

admin/group.inc, line 170
Group overview admin UI.

Code

function group_options_form_validate($form, &$form_state) {

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