function access_scheme_list_field_realms in Access Control Kit 7
Realms callback for the list field scheme types.
See also
1 string reference to 'access_scheme_list_field_realms'
- access_access_scheme_info in ./
access.access.inc - Implements hook_access_scheme_info().
File
- callbacks/
access.list.inc, line 13 - Callback functions for the list field access scheme types.
Code
function access_scheme_list_field_realms($scheme) {
if (!empty($scheme->settings['field_name']) && ($field = field_info_field($scheme->settings['field_name']))) {
return list_allowed_values($field);
}
return array();
}