You are here

function panels_common_context_data in Panels 5.2

Same name and namespace in other branches
  1. 6.2 includes/common-context.inc \panels_common_context_data()
3 calls to panels_common_context_data()
panels_common_add_item_to_form in includes/common.inc
Add a row to the form. Used both in the main form and by the ajax to add an item.
panels_common_ajax_context_item_add in includes/common.inc
Ajax entry point to add an context
panels_common_ajax_context_item_edit in includes/common.inc
Ajax entry point to edit an item

File

includes/common.inc, line 512
Functions used by more than one panels client module.

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);
  }
}