You are here

function ctools_role_ctools_access_settings_submit in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 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'
role.inc in plugins/access/role.inc
Plugin to provide access control based upon role membership.

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']));
}