diff --git a/plugins/arguments/term.inc b/plugins/arguments/term.inc index 97667f193cd45f4904f2e4264f41c24dab727063..f218d7f00c265bf836cee38c529bad05b32c7140 100644 --- a/plugins/arguments/term.inc +++ b/plugins/arguments/term.inc @@ -28,7 +28,7 @@ $plugin = array( function ctools_term_context($arg = NULL, $conf = NULL, $empty = FALSE) { // If unset it wants a generic, unfilled context. if ($empty) { - return ctools_context_create_empty('term'); + return ctools_context_create_empty('entity:taxonomy_term'); } switch ($conf['input_form']) { @@ -67,7 +67,7 @@ function ctools_term_context($arg = NULL, $conf = NULL, $empty = FALSE) { return NULL; } - $context = ctools_context_create('term', $term); + $context = ctools_context_create('entity:taxonomy_term', $term); $context->original_argument = $arg; return $context; } diff --git a/plugins/relationships/term_from_node.inc b/plugins/relationships/term_from_node.inc index 246950926942e7498b5824d74bb3b3f7ba167f9f..2304367820f85ed6deb51cca6918edff0255cdf7 100644 --- a/plugins/relationships/term_from_node.inc +++ b/plugins/relationships/term_from_node.inc @@ -25,13 +25,13 @@ $plugin = array( function ctools_term_from_node_context($context, $conf) { // If unset it wants a generic, unfilled context, which is just NULL. if (empty($context->data)) { - return ctools_context_create_empty('term', NULL); + return ctools_context_create_empty('entity_taxonomy:term', NULL); } if (isset($context->data->taxonomy)) { foreach ($context->data->taxonomy as $term) { if ($term->vid == $conf['vid']) { - return ctools_context_create('term', $term); + return ctools_context_create('entity:taxonomy_term', $term); } } } diff --git a/plugins/relationships/term_parent.inc b/plugins/relationships/term_parent.inc index 5e541d61cc0f728a5b81dca264ab03c70650bbd1..0ee9ebf0ff6b507a4b47a22111f94f6ab9ff1c87 100644 --- a/plugins/relationships/term_parent.inc +++ b/plugins/relationships/term_parent.inc @@ -13,7 +13,7 @@ $plugin = array( 'title' => t('Term parent'), 'keyword' => 'parent_term', 'description' => t('Adds a taxonomy term parent from a term context.'), - 'required context' => new ctools_context_required(t('Term'), 'term'), + 'required context' => new ctools_context_required(t('Term'), 'entity_taxonomy_term'), 'context' => 'ctools_term_parent_context', 'edit form' => 'ctools_term_parent_settings_form', 'defaults' => array('type' => 'top'), @@ -25,7 +25,7 @@ $plugin = array( function ctools_term_parent_context($context, $conf) { // If unset it wants a generic, unfilled context, which is just NULL. if (empty($context->data)) { - return ctools_context_create_empty('term'); + return ctools_context_create_empty('entity:taxonomy_term'); } if (isset($context->data)) { @@ -46,7 +46,7 @@ function ctools_term_parent_context($context, $conf) { // Load the term. if ($result) { $term = taxonomy_term_load($result['tid']); - return ctools_context_create('term', $term); + return ctools_context_create('entity:taxonomy_term', $term); } } }