You are here

function panels_new_display in Panels 5.2

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

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

3 calls to panels_new_display()
panels_mini_add_page in panels_mini/panels_mini.module
Handle the add mini panel page.
panels_node_insert in panels_node/panels_node.module
Implementation of hook_insert().
panels_page_add_page in panels_page/panels_page.admin.inc
Handle the add panel-page page.

File

./panels.module, line 637
panels.module Core API for Panels. Provides display editing and rendering capabilities.

Code

function panels_new_display() {
  $display = new panels_display();
  $display->did = 'new';
  return $display;
}