You are here

function panels_page_save_display in Panels 5.2

Same name and namespace in other branches
  1. 6.2 panels_page/panels_page.write.inc \panels_page_save_display()

Check to see if the panel page needs to be saved due to a display having been just saved.

Wrapper for panels_page_save().

3 calls to panels_page_save_display()
panels_page_edit_content in panels_page/panels_page.admin.inc
Pass through to the panels content editor.
panels_page_edit_layout in panels_page/panels_page.admin.inc
Pass through to the panels layout editor.
panels_page_edit_layout_settings in panels_page/panels_page.admin.inc
Pass through to the panels layout settings editor.

File

panels_page/panels_page.admin.inc, line 975
panels_page.admin.inc

Code

function panels_page_save_display(&$panel_page) {
  if (empty($panel_page->displays[$panel_page->current]['did']) || $panel_page->displays[$panel_page->current]['did'] == 'new') {
    if (!empty($panel_page->export)) {
      $code = panels_export_display($panel_page->display);
      eval($code);
      $panel_page->display =& $display;
    }
    return panels_page_save($panel_page);
  }
}