Retrieves the block display options.
array $form: The full wizard form array.
array $form_state: The current state of the wizard form.
array Returns an array of display options.
protected function block_display_options(array $form, array &$form_state) {
$display_options = array();
$block = $form_state['values']['block'];
$display_options['title'] = $block['title'];
$display_options['style'] = array(
'type' => $block['style']['style_plugin'],
);
$display_options['row'] = array(
'type' => isset($block['style']['row_plugin']) ? $block['style']['row_plugin'] : 'fields',
);
$display_options['pager']['type'] = $block['pager'] ? 'full' : (empty($block['items_per_page']) ? 'none' : 'some');
$display_options['pager']['options']['items_per_page'] = $block['items_per_page'];
return $display_options;
}