$handler = new stdClass(); $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */ $handler->api_version = 1; $handler->name = 'node_view_panel_context'; $handler->task = 'node_view'; $handler->subtask = ''; $handler->handler = 'panel_context'; $handler->weight = 0; $handler->conf = array( 'title' => 'Poll', 'no_blocks' => 0, 'pipeline' => 'standard', 'body_classes_to_remove' => '', 'body_classes_to_add' => '', 'css_id' => '', 'css' => '', 'contexts' => array(), 'relationships' => array(), 'access' => array( 'plugins' => array( 0 => array( 'name' => 'node_type', 'settings' => array( 'type' => array( 'poll' => 'poll', ), ), 'context' => 'argument_entity_id:node_1', 'not' => FALSE, ), ), 'logic' => 'and', ), ); $display = new panels_display(); $display->layout = 'flexible'; $display->layout_settings = array(); $display->panel_settings = array( 'style_settings' => array( 'default' => NULL, 'center' => NULL, ), ); $display->cache = array(); $display->title = '%node:title'; $display->content = array(); $display->panels = array(); $pane = new stdClass(); $pane->pid = 'new-1'; $pane->panel = 'center'; $pane->type = 'entity_field_extra'; $pane->subtype = 'node:poll_view_results'; $pane->shown = TRUE; $pane->access = array(); $pane->configuration = array( 'view_mode' => 'full', 'context' => 'argument_entity_id:node_1', 'override_title' => 0, 'override_title_text' => '', ); $pane->cache = array(); $pane->style = array( 'settings' => NULL, ); $pane->css = array(); $pane->extras = array(); $pane->position = 0; $pane->locks = array(); $display->content['new-1'] = $pane; $display->panels['center'][0] = 'new-1'; $pane = new stdClass(); $pane->pid = 'new-2'; $pane->panel = 'center'; $pane->type = 'entity_field_extra'; $pane->subtype = 'node:poll_view_voting'; $pane->shown = TRUE; $pane->access = array(); $pane->configuration = array( 'view_mode' => 'full', 'context' => 'argument_entity_id:node_1', 'override_title' => 0, 'override_title_text' => '', ); $pane->cache = array(); $pane->style = array( 'settings' => NULL, ); $pane->css = array(); $pane->extras = array(); $pane->position = 1; $pane->locks = array(); $display->content['new-2'] = $pane; $display->panels['center'][1] = 'new-2'; $display->hide_title = PANELS_TITLE_FIXED; $display->title_pane = 'new-1'; $handler->conf['display'] = $display;