function ctools_role_ctools_access_settings_submit in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 plugins/access/role.inc \ctools_role_ctools_access_settings_submit()
Compress the roles allowed to the minimum.
1 string reference to 'ctools_role_ctools_access_settings_submit'
File
- plugins/
access/ role.inc, line 39 - Plugin to provide access control based upon role membership.
Code
function ctools_role_ctools_access_settings_submit(&$form, &$form_state) {
$form_state['values']['settings']['rids'] = array_keys(array_filter($form_state['values']['settings']['rids']));
}