You are here

function ctools_get_context in Chaos Tool Suite (ctools) 6

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

Fetch metadata on a specific context plugin.

Parameters

$context: Name of a context.

Return value

An array with information about the requested panel context.

7 calls to ctools_get_context()
ctools_context_get_context_from_context in includes/context.inc
ctools_context_keyword_substitute in includes/context.inc
Perform keyword and context substitutions.
ctools_context_node_edit_convert in plugins/contexts/node_edit_form.inc
Convert a context into a string.
ctools_context_node_edit_convert_list in plugins/contexts/node_edit_form.inc
Provide a list of ways that this context can be converted to a string.
ctools_context_replace_form in includes/context.inc
Provide a form array for getting data to replace placeholder contexts with real data.

... See full list

1 string reference to 'ctools_get_context'
ctools_context_info in includes/context-admin.inc
Provide a list of the ways contexts can be embedded.

File

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

Code

function ctools_get_context($context) {
  ctools_include('plugins');
  return ctools_get_plugins('ctools', 'contexts', $context);
}