Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $page = new stdClass;
- $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
- $page->api_version = 1;
- $page->name = 'test';
- $page->task = 'page';
- $page->admin_title = 'test';
- $page->admin_description = '';
- $page->path = 'test';
- $page->access = array();
- $page->menu = array();
- $page->arguments = array();
- $page->conf = array();
- $page->default_handlers = array();
- $handler = new stdClass;
- $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
- $handler->api_version = 1;
- $handler->name = 'page_test_panel_context';
- $handler->task = 'page';
- $handler->subtask = 'test';
- $handler->handler = 'panel_context';
- $handler->weight = 0;
- $handler->conf = array(
- 'title' => 'Panel',
- 'no_blocks' => 0,
- 'pipeline' => 'standard',
- 'css_id' => '',
- 'css' => '',
- 'contexts' => array(),
- 'relationships' => array(),
- );
- $display = new panels_display;
- $display->layout = 'onecol';
- $display->layout_settings = array();
- $display->panel_settings = array(
- 'style_settings' => array(
- 'default' => NULL,
- 'middle' => NULL,
- ),
- );
- $display->cache = array();
- $display->title = '';
- $display->content = array();
- $display->panels = array();
- $pane = new stdClass;
- $pane->pid = 'new-1';
- $pane->panel = 'middle';
- $pane->type = 'views_panes';
- $pane->subtype = 'testview-panel_pane_1';
- $pane->shown = TRUE;
- $pane->access = array();
- $pane->configuration = array(
- 'fields_override' => array(
- 'field_signature_image_fid' => 1,
- 'title' => 1,
- ),
- );
- $pane->cache = array();
- $pane->style = array(
- 'settings' => NULL,
- );
- $pane->css = array();
- $pane->extras = array();
- $pane->position = 0;
- $display->content['new-1'] = $pane;
- $display->panels['middle'][0] = 'new-1';
- $display->hide_title = PANELS_TITLE_FIXED;
- $display->title_pane = 'new-1';
- $handler->conf['display'] = $display;
- $page->default_handlers[$handler->name] = $handler;
Advertisement
Add Comment
Please, Sign In to add comment