function ctools_vid_context($arg = NULL, $conf = NULL, $empty = FALSE) {
// If unset it wants a generic, unfilled context.
if ($empty) {
- return ctools_context_create_empty('vocabulary');
+ return ctools_context_create_empty('entity:taxonomy_vocabulary');
}
if (!is_numeric($arg)) {
'title' => t('Vocabulary terms'),
'icon' => 'icon_vocabulary.png',
'description' => t('All the terms in a vocabulary.'),
- 'required context' => new ctools_context_required(t('Vocabulary'), 'vocabulary'),
+ 'required context' => new ctools_context_required(t('Vocabulary'), 'entity:taxonomy_vocabulary'),
'category' => t('Vocabulary'),
'defaults' => array('max_depth' => 0, 'tree' => 1),
);
// This context is deprecated and should not be usable in the UI.
'no ui' => TRUE,
'no required context ui' => TRUE,
+ 'superceded by' => 'entity:taxonomy_vocabulary',
);
/**