$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( 'type' => 'normal', 'title' => 'test', 'name' => 'features', 'weight' => '-10', 'parent' => array( 'type' => 'none', 'title' => '', 'name' => 'navigation', 'weight' => '0', ), ); $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' => FALSE, 'css_id' => '', 'css' => '', 'contexts' => array(), 'relationships' => array(), ); $display = new panels_display; $display->layout = 'onecol'; $display->layout_settings = array(); $display->panel_settings = array(); $display->cache = array(); $display->title = 'test'; $display->hide_title = FALSE; $display->content = array(); $display->panels = array(); $pane = new stdClass; $pane->pid = 'new-1'; $pane->panel = 'middle'; $pane->type = 'custom'; $pane->subtype = 'custom'; $pane->shown = TRUE; $pane->access = array(); $pane->configuration = array( 'title' => 'test title', 'body' => 'this is test content', 'format' => '1', 'substitute' => NULL, ); $pane->cache = array(); $pane->style = array(); $pane->css = array(); $pane->extras = array(); $pane->position = 0; $display->content['new-1'] = $pane; $display->panels['middle'][0] = 'new-1'; $handler->conf['display'] = $display; $page->default_handlers[$handler->name] = $handler;