function simple_access_views_plugin_group::options_validate in Simple Access 6.2
Same name and namespace in other branches
- 7.2 views/simple_access_views_plugin_group.inc \simple_access_views_plugin_group::options_validate()
File
- views/
simple_access_views_plugin_group.inc, line 50
Class
Code
function options_validate(&$form, &$form_state) {
if (!array_filter($form_state['values']['access_options']['groups'])) {
form_error($form['role'], t('You must select at least one group if type is "by group"'));
}
}