You are here

function panels_common_context_data in Panels 6.2

Same name and namespace in other branches
  1. 5.2 includes/common.inc \panels_common_context_data()

Get the data belonging to a particular context.

3 calls to panels_common_context_data()
panels_ajax_context_item_add in includes/common-context.inc
Ajax entry point to add an context
panels_ajax_context_item_edit in includes/common-context.inc
Ajax entry point to edit an item
panels_common_add_item_to_form in includes/common-context.inc
Add a row to the form. Used both in the main form and by the ajax to add an item.

File

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

Code

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