ctools_context_get_plugin

  1. drupal
    1. 7 context-admin.inc function
Drupal 7 ctools_context_get_plugin($type, $name)

Get the data belonging to a particular context.

3 calls to ctools_context_get_plugin()

File

sites/all/modules/ctools/includes/context-admin.inc, line 77
includes/common-context.inc Provide API for adding contexts for modules that embed displays.

Code

function ctools_context_get_plugin($type, $name) {
  $info = ctools_context_info($type);
  if (function_exists($info['context function'])) {
    return $info['context function']($name);
  }
}