function views_plugin_access_role::options_validate
Same name in other branches
- 7.x-3.x plugins/views_plugin_access_role.inc \views_plugin_access_role::options_validate()
Overrides views_plugin_access::options_validate
File
-
plugins/
views_plugin_access_role.inc, line 48
Class
- views_plugin_access_role
- Access plugin that provides role-based access control.
Code
function options_validate(&$form, &$form_state) {
if (!array_filter($form_state['values']['access_options']['role'])) {
form_error($form['role'], t('You must select at least one role if type is "by role"'));
}
}