workbench.pages_default.inc in Workbench 7
Contains a sample myworkbench variant for Panels.
File
workbench.pages_default.incView source
<?php
/**
* @file
* Contains a sample myworkbench variant for Panels.
*/
/**
* Implementation of hook_default_page_manager_handlers()
*/
function workbench_default_page_manager_handlers() {
$handlers = array();
$handler = new stdClass();
$handler->disabled = TRUE;
$handler->api_version = 1;
$handler->name = 'myworkbench_panel_context_sample';
$handler->task = 'myworkbench';
$handler->subtask = '';
$handler->handler = 'panel_context';
$handler->weight = 100;
$handler->conf = array(
'title' => 'Sample Workbench',
'no_blocks' => 0,
'pipeline' => 'standard',
'css_id' => '',
'css' => '',
'contexts' => array(),
'relationships' => array(),
);
$display = new panels_display();
$display->layout = 'twocol_bricks';
$display->layout_settings = array();
$display->panel_settings = array(
'style_settings' => array(
'default' => NULL,
'middle' => NULL,
'top' => NULL,
'left_above' => NULL,
'right_above' => NULL,
'left_below' => NULL,
'right_below' => NULL,
'bottom' => NULL,
),
);
$display->cache = array();
$display->title = 'My Workbench Sample';
$display->content = array();
$display->panels = array();
$pane = new stdClass();
$pane->pid = 'new-1';
$pane->panel = 'left_above';
$pane->type = 'views';
$pane->subtype = 'workbench_current_user';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array(
'override_pager_settings' => 0,
'use_pager' => 0,
'nodes_per_page' => '0',
'pager_id' => '0',
'offset' => '0',
'more_link' => 0,
'feed_icons' => 0,
'panel_args' => 0,
'link_to_view' => 0,
'args' => '',
'url' => '',
'display' => 'default',
'override_title' => 0,
'override_title_text' => '',
);
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
);
$pane->css = array();
$pane->extras = array();
$pane->position = 0;
$display->content['new-1'] = $pane;
$display->panels['left_above'][0] = 'new-1';
$pane = new stdClass();
$pane->pid = 'new-2';
$pane->panel = 'middle';
$pane->type = 'views';
$pane->subtype = 'workbench_recent_content';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array(
'override_pager_settings' => 0,
'use_pager' => 0,
'nodes_per_page' => '25',
'pager_id' => '0',
'offset' => '0',
'more_link' => 0,
'feed_icons' => 0,
'panel_args' => 0,
'link_to_view' => 0,
'args' => '',
'url' => '',
'display' => 'block_1',
'override_title' => 0,
'override_title_text' => '',
);
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
);
$pane->css = array();
$pane->extras = array();
$pane->position = 0;
$display->content['new-2'] = $pane;
$display->panels['middle'][0] = 'new-2';
$pane = new stdClass();
$pane->pid = 'new-3';
$pane->panel = 'right_above';
$pane->type = 'views';
$pane->subtype = 'workbench_edited';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array(
'override_pager_settings' => 0,
'use_pager' => 0,
'nodes_per_page' => '5',
'pager_id' => '0',
'offset' => '0',
'more_link' => 0,
'feed_icons' => 0,
'panel_args' => 0,
'link_to_view' => 0,
'args' => '',
'url' => '',
'display' => 'block_1',
'override_title' => 0,
'override_title_text' => '',
);
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
);
$pane->css = array();
$pane->extras = array();
$pane->position = 0;
$display->content['new-3'] = $pane;
$display->panels['right_above'][0] = 'new-3';
$pane = new stdClass();
$pane->pid = 'new-4';
$pane->panel = 'top';
$pane->type = 'custom';
$pane->subtype = 'custom';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array(
'admin_title' => 'Sample Variant',
'title' => 'My Workbench created through Panels.',
'body' => '<em>You are viewing "My Workbench" as created by Page Manager and Panels. The module Views Content Panes is also recommended. Please read the <a href="http://drupal.org/node/1226174" target="_blank">Workbench documentation</a> for the best practices in using Panels and Page Manager with Workbench.</em>',
'format' => 'filtered_html',
'substitute' => 0,
);
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
);
$pane->css = array();
$pane->extras = array();
$pane->position = 0;
$display->content['new-4'] = $pane;
$display->panels['top'][0] = 'new-4';
$display->hide_title = PANELS_TITLE_FIXED;
$display->title_pane = 'new-2';
$handler->conf['display'] = $display;
$handlers['myworkbench_panel_context_sample'] = $handler;
return $handlers;
}
Functions
Name | Description |
---|---|
workbench_default_page_manager_handlers | Implementation of hook_default_page_manager_handlers() |