You are here

function panels_ct_pane_config_form in Panels 6.2

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

Call any content type-defined add/edit callbacks so that additions to $form['configuration'] can be made.

Parameters

object $pane: The $pane object currently being edited.

$contexts: A list of possible contexts.

$parents: The #parents to be used on the form, because some form gadgets need to know where they live.

string $op: Either 'add' or 'edit' depending on the operation being performed.

mixed $content_type: This variable should only be passed if the calling function already has access to the relevant content_type data and wants to save a little on performance. If so, then the fully-loaded content type plugin declaration array should be passed.

See also

panels_content_config_form()

Related topics

1 call to panels_ct_pane_config_form()
panels_content_config_form in includes/display-edit.inc
Master FAPI definition for all pane add/edit configuration forms.

File

includes/plugins.inc, line 361
plugins.inc

Code

function panels_ct_pane_config_form($pane, $contexts, $parents, $op, $content_type = 'content_types') {
  if ($function = panels_plugin_get_function($content_type, $pane->type, "{$op} callback")) {
    return $function($pane->subtype, $parents, $pane->configuration);
  }
}