$default_display =
$executable->
newDisplay('default', 'Default', 'default'
);
foreach ($display_options['default'
] as $option =>
$value) { $default_display->
setOption($option,
$value);
} // Display: Page
if (isset($display_options['page'
])) { $display =
$executable->
newDisplay('page', 'Page', 'page_1'
);
// The page display is usually the main one (from the user's point of
// view). Its options should therefore become the overall view defaults,
// so that new displays which are added later automatically inherit them.
$this->
setDefaultOptions($display_options['page'
],
$display,
$default_display);
// Display: Feed (attached to the page).
if (isset($display_options['feed'
])) { $display =
$executable->
newDisplay('feed', 'Feed', 'feed_1'
);
$this->
setOverrideOptions($display_options['feed'
],
$display,
$default_display);
} } // Display: Block.
if (isset($display_options['block'
])) { $display =
$executable->
newDisplay('block', 'Block', 'block_1'
);