function ctools_context_create_vocabulary
It's important to remember that $conf is optional here, because contexts are not always created from the UI.
1 string reference to 'ctools_context_create_vocabulary'
- vocabulary.inc in plugins/contexts/ vocabulary.inc 
- Plugin to provide a vocabulary context.
File
- 
              plugins/contexts/ vocabulary.inc, line 30 
Code
function ctools_context_create_vocabulary($empty, $data = NULL, $conf = FALSE) {
  $context = new ctools_context('vocabulary');
  $context->plugin = 'vocabulary';
  if ($empty) {
    return $context;
  }
  if ($conf && isset($data['vid'])) {
    $data = taxonomy_vocabulary_load($data['vid']);
  }
  if (!empty($data)) {
    $context->data = $data;
    $context->title = $data->name;
    $context->argument = $data->vid;
    return $context;
  }
}