You are here

function ctools_context_data in Chaos Tool Suite (ctools) 6

Get the data belonging to a particular context.

3 calls to ctools_context_data()
ctools_context_add_item_to_form in includes/context-admin.inc
Add a row to the form. Used both in the main form and by the ajax to add an item.
ctools_context_ajax_item_add in includes/context-admin.inc
Ajax entry point to add an context
ctools_context_ajax_item_edit in includes/context-admin.inc
Ajax entry point to edit an item

File

includes/context-admin.inc, line 130
includes/common-context.inc Provide API for adding contexts for modules that embed displays.

Code

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