You are here

function ctools_context_get_converters in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 includes/context.inc \ctools_context_get_converters()

Get a list of converters available for a given context.

Parameters

string $cid: A context ID.

ctools_context $context: The context for which converters are needed.

Return value

array A list of context converters.

5 calls to ctools_context_get_converters()
ctools_custom_content_type_edit_form in plugins/content_types/custom/custom.inc
Returns an edit form for the custom type.
theme_ctools_context_list in includes/context.theme.inc
Create a visible list of all the contexts available on an object. Assumes arguments, relationships and context objects.
views_content_views_content_type_admin_info in views_content/plugins/content_types/views.inc
Returns the administrative title for a type.
views_content_views_panes_content_type_edit_form in views_content/plugins/content_types/views_panes.inc
Returns an edit form for a block.
_ctools_context_converter_selector in includes/context.inc
Helper function for ctools_context_converter_selector().

File

includes/context.inc, line 770
Contains code related to the ctools system of 'context'.

Code

function ctools_context_get_converters($cid, $context) {
  if (empty($context->plugin)) {
    return array();
  }
  return _ctools_context_get_converters($cid, $context->plugin);
}