You are here

function panels_new_display in Panels 7.3

Same name and namespace in other branches
  1. 8.3 panels.module \panels_new_display()
  2. 5.2 panels.module \panels_new_display()
  3. 6.3 panels.module \panels_new_display()
  4. 6.2 panels.module \panels_new_display()

Creates a new display, setting the ID to our magic new id.

9 calls to panels_new_display()
panels_change_layout in includes/display-layout.inc
Form definition for the display layout converter.
panels_landing_page_new_page in plugins/page_wizards/landing_page.inc
Provide defaults for a new cache.
panels_layouts_ui::edit_form in plugins/export_ui/panels_layouts_ui.class.php
Provide the actual editing form.
panels_mini_ui::edit_form_layout in panels_mini/plugins/export_ui/panels_mini_ui.class.php
panels_node_hook_insert in panels_node/panels_node.module
Implementation of hook_insert().

... See full list

File

./panels.module, line 951
Core functionality for the Panels engine.

Code

function panels_new_display() {
  ctools_include('export');
  $display = ctools_export_new_object('panels_display', FALSE);
  $display->did = 'new';
  return $display;
}