From c4dcf76efb9476db65dfb6967599bf8c1b5c6f57 Mon Sep 17 00:00:00 2001
From: megachriz <megachriz@654114.no-reply.drupal.org>
Date: Sun, 11 Oct 2015 12:55:51 +0200
Subject: [PATCH] Issue #2581135 by Anas_maw, MegaChriz: views integration for
 feeds source import date

---
 views/feeds.views.inc | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/views/feeds.views.inc b/views/feeds.views.inc
index ff88606a..b3b9856a 100644
--- a/views/feeds.views.inc
+++ b/views/feeds.views.inc
@@ -55,6 +55,23 @@ function feeds_views_data() {
       'click sortable' => FALSE,
     ),
   );
+  $data['feeds_source']['imported'] = array(
+    'title' => t('Imported date'),
+    'help' => t('The date the source was imported last.'),
+    'field' => array(
+      'handler' => 'views_handler_field_date',
+      'click sortable' => TRUE,
+    ),
+    'filter' => array(
+      'handler' => 'views_handler_filter_date',
+    ),
+    'argument' => array(
+      'handler' => 'views_handler_argument_date',
+    ),
+    'sort' => array(
+      'handler' => 'views_handler_sort_date',
+    ),
+  );
   $data['feeds_source']['table']['join'] = array(
     'node' => array(
       'left_field' => 'nid',
-- 
GitLab