function ctools_entity_bundle_ctools_access_restrictions in Chaos Tool Suite (ctools) 7
Inform the UI that we've eliminated a bunch of possibilities for this context.
1 string reference to 'ctools_entity_bundle_ctools_access_restrictions'
- entity_bundle.inc in plugins/
access/ entity_bundle.inc - Plugin to provide access control based upon entity bundle.
File
- plugins/
access/ entity_bundle.inc, line 101 - Plugin to provide access control based upon entity bundle.
Code
function ctools_entity_bundle_ctools_access_restrictions($conf, &$context) {
if (isset($context->restrictions['type'])) {
$context->restrictions['type'] = array_unique(array_merge($context->restrictions['type'], array_keys(array_filter($conf['type']))));
}
else {
$context->restrictions['type'] = array_keys(array_filter($conf['type']));
}
}