You are here

function panelizer_edit_content_form in Panelizer 7.3

Same name and namespace in other branches
  1. 7.2 includes/common.inc \panelizer_edit_content_form()
2 string references to 'panelizer_edit_content_form'
PanelizerEntityDefault::page_content in plugins/entity/PanelizerEntityDefault.class.php
panelizer_default_content_page in includes/admin.inc
Pass through to the panels content editor.

File

includes/common.inc, line 463
Contains common forms and routines that different object types use.

Code

function panelizer_edit_content_form($form, &$form_state) {
  ctools_include('ajax');
  ctools_include('plugins', 'panels');
  ctools_include('display-edit', 'panels');
  ctools_include('context');
  $cache = $form_state['display cache'];
  $form_state['renderer'] = panels_get_renderer_handler('editor', $cache->display);
  $form_state['renderer']->cache = $cache;
  $form_state['display'] =& $cache->display;
  $form_state['content_types'] = $cache->content_types;
  $form_state['display_title'] = TRUE;
  $form = panels_edit_display_form($form, $form_state);
  panelizer_add_revision_info_form($form, $form_state);
  $form['preview']['#weight'] = 100;
  return $form;
}