remove a bunch of notices
							parent
							
								
									dd7d246bed
								
							
						
					
					
						commit
						953de7e4e2
					
				| 
						 | 
				
			
			@ -445,9 +445,9 @@ function views_discover_plugins() {
 | 
			
		|||
        if (!isset($def['path'])) {
 | 
			
		||||
          $def['path'] = $path;
 | 
			
		||||
        }
 | 
			
		||||
        if (!isset($def['file'])) {
 | 
			
		||||
          $def['file'] = $def['handler'] . '.inc';
 | 
			
		||||
        }
 | 
			
		||||
//        if (!isset($def['file'])) {
 | 
			
		||||
//          $def['file'] = $def['handler'] . '.inc';
 | 
			
		||||
//        }
 | 
			
		||||
        if (!isset($def['parent'])) {
 | 
			
		||||
          $def['parent'] = 'parent';
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -579,8 +579,7 @@ class View extends ViewsDbObject {
 | 
			
		|||
      $this->style_options = $this->display_handler->get_option('style_options');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    $style_manager = new StylePluginManager();
 | 
			
		||||
    $this->style_plugin = $style_manager->createInstance($this->plugin_name);
 | 
			
		||||
    $this->style_plugin = views_get_plugin('style', $this->plugin_name);
 | 
			
		||||
 | 
			
		||||
    if (empty($this->style_plugin)) {
 | 
			
		||||
      return FALSE;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -634,7 +634,7 @@ function node_views_plugins() {
 | 
			
		|||
      'node' => array(
 | 
			
		||||
        'title' => t('Content'),
 | 
			
		||||
        'help' => t('Display the content with standard node view.'),
 | 
			
		||||
        'handler' => 'views_plugin_row_node_view',
 | 
			
		||||
        'class' => 'views_plugin_row_node_view',
 | 
			
		||||
        'path' => drupal_get_path('module', 'views') . '/modules/node', // not necessary for most modules
 | 
			
		||||
        'base' => array('node'), // only works with 'node' as base.
 | 
			
		||||
        'uses options' => TRUE,
 | 
			
		||||
| 
						 | 
				
			
			@ -644,7 +644,7 @@ function node_views_plugins() {
 | 
			
		|||
      'node_rss' => array(
 | 
			
		||||
        'title' => t('Content'),
 | 
			
		||||
        'help' => t('Display the content with standard node view.'),
 | 
			
		||||
        'handler' => 'views_plugin_row_node_rss',
 | 
			
		||||
        'class' => 'views_plugin_row_node_rss',
 | 
			
		||||
        'path' => drupal_get_path('module', 'views') . '/modules/node', // not necessary for most modules
 | 
			
		||||
        'theme' => 'views_view_row_rss',
 | 
			
		||||
        'base' => array('node'), // only works with 'node' as base.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,11 +5,13 @@
 | 
			
		|||
 * Contains the node RSS row style plugin.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
use Drupal\views\Plugins\views\row\RowPluginBase;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Plugin which performs a node_view on the resulting object
 | 
			
		||||
 * and formats it as an RSS item.
 | 
			
		||||
 */
 | 
			
		||||
class views_plugin_row_node_rss extends views_plugin_row {
 | 
			
		||||
class views_plugin_row_node_rss extends RowPluginBase {
 | 
			
		||||
  // Basic properties that let the row style follow relationships.
 | 
			
		||||
  var $base_table = 'node';
 | 
			
		||||
  var $base_field = 'nid';
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,6 +5,8 @@
 | 
			
		|||
 * Contains the node view row style plugin.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
use Drupal\views\Plugins\views\row\RowPluginBase;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Plugin which performs a node_view on the resulting object.
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -12,7 +14,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 * @ingroup views_row_plugins
 | 
			
		||||
 */
 | 
			
		||||
class views_plugin_row_node_view extends views_plugin_row {
 | 
			
		||||
class views_plugin_row_node_view extends RowPluginBase {
 | 
			
		||||
  // Basic properties that let the row style follow relationships.
 | 
			
		||||
  var $base_table = 'node';
 | 
			
		||||
  var $base_field = 'nid';
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue