Commit 2660450b authored by dawehner's avatar dawehner Committed by tim.plunkett

Issue #1770616 by tim.plunkett, dawehner: Move block display to a block module integration.

parent a3aa17e4
......@@ -356,6 +356,10 @@ function build_form($form, &$form_state) {
);
}
if (!module_exists('block')) {
return $form;
}
$form['displays']['block'] = array(
'#type' => 'fieldset',
'#attributes' => array('class' => array('views-attachment', 'fieldset-no-legend')),
......
......@@ -3,12 +3,14 @@
/**
* @file
* Definition of Drupal\views\Plugin\views\display\Block.
* Definition of Views\block\Plugin\views\display\Block.
*/
namespace Drupal\views\Plugin\views\display;
namespace Views\block\Plugin\views\display;
use Drupal\Core\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
use Drupal\views\Plugin\views\display\DisplayPluginBase;
/**
* The plugin that handles a block.
......@@ -17,6 +19,7 @@
*
* @Plugin(
* id = "block",
* module = "block",
* title = @Translation("Block"),
* help = @Translation("Display the view as a block."),
* theme = "views_view",
......
......@@ -31,6 +31,7 @@ function views_core_modules() {
return array(
'aggregator',
'book',
'block',
'comment',
'contact',
'field',
......@@ -2538,6 +2539,10 @@ function aggregator_views_api() { return views_views_api(); }
function book_views_api() { return views_views_api(); }
}
if (!function_exists('block_views_api')) {
function block_views_api() { return views_views_api(); }
}
if (!function_exists('comment_views_api')) {
function comment_views_api() { return views_views_api(); }
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment