function ctools_plugin_example_example_role_ctools_access_settings_submit in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 ctools_plugin_example/plugins/access/example_role.inc \ctools_plugin_example_example_role_ctools_access_settings_submit()
Compress the roles allowed to the minimum.
File
- ctools_plugin_example/
plugins/ access/ example_role.inc, line 40 - Plugin to provide access control based upon role membership. This is directly from the ctools module, but serves as a good example of an access plugin.
Code
function ctools_plugin_example_example_role_ctools_access_settings_submit(&$form, &$form_state) {
$form_state['values']['settings']['rids'] = array_keys(array_filter($form_state['values']['settings']['rids']));
}