function ctools_term_vocabulary_ctools_access_check
Check for access.
1 string reference to 'ctools_term_vocabulary_ctools_access_check'
- term_vocabulary.inc in plugins/access/ term_vocabulary.inc 
- Plugin to provide access control based upon term vocabulary.
File
- 
              plugins/access/ term_vocabulary.inc, line 59 
Code
function ctools_term_vocabulary_ctools_access_check($conf, $context) {
  // As far as I know there should always be a context at this point, but this
  // is safe.
  if (empty($context) || empty($context->data) || empty($context->data->vocabulary_machine_name)) {
    return FALSE;
  }
  _ctools_term_vocabulary_ctools_access_map_vids($conf);
  if (array_filter($conf['machine_name']) && empty($conf['machine_name'][$context->data->vocabulary_machine_name])) {
    return FALSE;
  }
  return TRUE;
}