You are here

function varbase_homepage_panel_default_page_manager_pages in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 7.2

Implements hook_default_page_manager_pages().

File

modules/features/varbase_homepage_panel/varbase_homepage_panel.pages_default.inc, line 10
varbase_homepage_panel.pages_default.inc

Code

function varbase_homepage_panel_default_page_manager_pages() {
  $page = new stdClass();
  $page->disabled = FALSE;

  /* Edit this to true to make a default page disabled initially */
  $page->api_version = 1;
  $page->name = 'frontpage';
  $page->task = 'page';
  $page->admin_title = 'Frontpage';
  $page->admin_description = '';
  $page->path = 'home';
  $page->access = array();
  $page->menu = array();
  $page->arguments = array();
  $page->conf = array(
    'admin_paths' => FALSE,
  );
  $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_frontpage_panel_context';
  $handler->task = 'page';
  $handler->subtask = 'frontpage';
  $handler->handler = 'panel_context';
  $handler->weight = 0;
  $handler->conf = array(
    'title' => 'Homepage',
    'no_blocks' => 0,
    'pipeline' => 'standard',
    'body_classes_to_remove' => '',
    'body_classes_to_add' => '',
    'css_id' => 'homepage-panel',
    '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->uuid = '4246678e-1fcb-4e87-a077-d2291451a3d9';
  $display->content = array();
  $display->panels = array();
  $pane = new stdClass();
  $pane->pid = 'new-9cfc0ec0-3e22-4717-98eb-bca5ab77e40c';
  $pane->panel = 'middle';
  $pane->type = 'custom';
  $pane->subtype = 'custom';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'admin_title' => '',
    'title' => '',
    'body' => '<p>This is a panel. Please override and display your content here.</p>
',
    'format' => 'visual_editor',
    'substitute' => TRUE,
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array(
    'css_id' => '',
    'css_class' => 'well',
  );
  $pane->extras = array();
  $pane->position = 0;
  $pane->locks = array();
  $pane->uuid = '9cfc0ec0-3e22-4717-98eb-bca5ab77e40c';
  $display->content['new-9cfc0ec0-3e22-4717-98eb-bca5ab77e40c'] = $pane;
  $display->panels['middle'][0] = 'new-9cfc0ec0-3e22-4717-98eb-bca5ab77e40c';
  $display->hide_title = PANELS_TITLE_NONE;
  $display->title_pane = 'new-9cfc0ec0-3e22-4717-98eb-bca5ab77e40c';
  $handler->conf['display'] = $display;
  $page->default_handlers[$handler->name] = $handler;
  $pages['frontpage'] = $page;
  return $pages;
}