Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / draggableviews / draggableviews.module.rej
1 --- draggableviews.module       (revision 76d7ca84425218e1e9f60633767bcbb5024a3d8c)
2 +++ draggableviews.module       (revision )
3 @@ -58,10 +58,23 @@
4          'left_table' => $base_table,
5          'left_field' => $entity_keys['id'],
6          'field' => 'entity_id',
7 +        'extra' => array(
8 +          array('field' => 'view_name', 'value' => '***VIEW_ID***'),
9 +          array('field' => 'view_display', 'value' => '***VIEW_DISPLAY***'),
10 +        ),
11        );
12      }
13    }
14  }
15 +
16 +/**
17 + * Implements hook_views_query_substitutions().
18 + *
19 + * Allow replacement of current userid so we can cache these queries.
20 + */
21 +function draggableviews_views_query_substitutions(\Drupal\views\ViewExecutable $view) {
22 +  return array('***VIEW_ID***' => $view->id(), '***VIEW_DISPLAY***' => $view->current_display);
23 +}
24  
25  /**
26   * Implements hook_preprocess_views_view_table().