You are here

function panels_new_pane in Panels 6.2

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

Related topics

1 call to panels_new_pane()
panels_ajax_add_pane_config in includes/display-edit.inc
AJAX entry point for to configure a pane that has just been added.

File

./panels.module, line 566
panels.module

Code

function panels_new_pane($type, $subtype) {
  $pane = new stdClass();
  $pane->pid = 'new';
  $pane->type = $type;
  $pane->subtype = $subtype;
  $pane->configuration = array();
  $pane->access = array();
  $pane->shown = TRUE;
  $pane->visibility = '';
  return $pane;
}