You are here

function panels_content_config_edit_form_submit in Panels 5.2

File

includes/display_edit.inc, line 1174

Code

function panels_content_config_edit_form_submit($form_values, $cache, $pane) {

  // If this content type defines its own 'editor render callback', we need to
  // invoke that again, since we're not doing a full panels_show_pane().
  $content_type = $cache->content_config[$pane->pid]['ct_data']['type'];
  if (function_exists($content_type['editor render callback'])) {
    $block = $content_type['editor render callback']($cache->display, $pane);
  }
  else {
    $block = _panels_render_preview_pane_disabled($pane, $cache->display->context);
  }
  $ajax_vars = new stdClass();
  $ajax_vars->type = 'replace';
  $ajax_vars->output = theme('panels_pane_collapsible', $block, $cache->display);
  return $ajax_vars;
}