function ctools_get_context

cis7 ctools_get_context($context)
cle7 ctools_get_context($context)
elmsmedia7 ctools_get_context($context)
icor7 ctools_get_context($context)
meedjum_blog7 ctools_get_context($context)
mooc7 ctools_get_context($context)

Fetch metadata on a specific context plugin.


$context: Name of a context.

Return value

An array with information about the requested panel context.

14 calls to ctools_get_context()
ctools_context_convert_context in sites/all/modules/ulmus/ctools/includes/
Let the context convert an argument based upon the converter that was given.
ctools_context_create in sites/all/modules/ulmus/ctools/includes/
Create a new context object.
ctools_context_create_empty in sites/all/modules/ulmus/ctools/includes/
Create an empty context object.
ctools_context_get_context_from_context in sites/all/modules/ulmus/ctools/includes/
ctools_context_keyword_substitute in sites/all/modules/ulmus/ctools/includes/
Perform keyword and context substitutions.

... See full list

1 string reference to 'ctools_get_context'
ctools_context_info in sites/all/modules/ulmus/ctools/includes/
Provide a list of the ways contexts can be embedded.


sites/all/modules/ulmus/ctools/includes/, line 1029
Contains code related to the ctools system of 'context'.


function ctools_get_context($context) {
  static $gate = array();
  $plugin = ctools_get_plugins('ctools', 'contexts', $context);
  if (empty($gate['context']) && !empty($plugin['superceded by'])) {
    // This gate prevents infinite loops.
    $gate[$context] = TRUE;
    $new_plugin = ctools_get_plugins('ctools', 'contexts', $plugin['superceded by']);
    $gate[$context] = FALSE;

    // If a new plugin was returned, return it. Otherwise fall through and
    // return the original we fetched.
    if ($new_plugin) {
      return $new_plugin;

  return $plugin;