Will we ever have this for D7, or is another way to achieve the same result?
tx
Simone

Comments

cpelham’s picture

I need this also.

cimo75’s picture

+1

karljohann’s picture

+1

Stan.Ezersky’s picture

+1

mrpeanut’s picture

I, too, would like a Drupal 7 module (wish I could help with it). I wasn't able to find a way to do it without this module.

kars-t’s picture

Status: Active » Needs review
StatusFileSize
new10.25 KB

Hi

I uploaded a D7 version. Please review and test it!

If the module maintainer is still around I'd like git access to support the D7 version. If not I'd like to take over the work for module.

dawehner’s picture

Status: Needs review » Needs work
+++ b/views/views_exclude_previous.views.incundefined
@@ -0,0 +1,48 @@
+      'handler' => 'views_exclude_previous_handler',

If you already rename the file you should better use the official nameing so what about views_exclude_previous_handler_filter or something more

+++ b/views/views_exclude_previous.views.incundefined
@@ -0,0 +1,48 @@
+/**
+ * Implements hook_views_handlers
+ */
+function views_exclude_previous_views_handlers() {
+  return array(
+    'info' => array(
+      'path' => drupal_get_path('module', 'views_exclude_previous'),
+    ),
+    'handlers' => array(
+      'views_exclude_previous_handler' => array(
+        'parent' => 'views_handler_filter_in_operator',
+      ),
+    ),
+  );

hook_views_handlers is not needed anymore in d7, the info file is enough.

+++ b/views_exclude_previous.moduleundefined
@@ -11,88 +16,50 @@ function views_exclude_previous_help($section, $arg) {
+  static $excludes = array();

Better use drupal_static in d7.

kars-t’s picture

Status: Needs work » Needs review
StatusFileSize
new10.5 KB

New version with dereines suggestion.

overtune’s picture

Really good initiative!

I have tried to apply the patch, and after some trial and error I got the filter to work.
I'm not shure if I applyed the patch wrong in some way? Is the patch for the 6.x-1.x-dev version?

Anyway, after the patch was applyed I had to manually create the subfolder "views" and move the files "views_exclude_previous_handler_filter.inc" and "views_exclude_previous.views.inc" in there.

But now it seems to be working. I intend to use this module in a quit large project, and will be glad to contribute some testing and bug-reporting.

kars-t’s picture

The patch is against the master branch which should be equal to the dev version. Don't know why it didn't create the fodlers.

Maybe take a look at this page and "Applying a patch"
http://drupal.org/node/305951/git-instructions

Stan.Ezersky’s picture

Kars-T, can you make attachment module files for Drupal 7?

kars-t’s picture

Status: Needs review » Fixed

Hi

I finally got GIT access. There should be a D7 dev release in some minutes. Please test it so we can make it stable and improve the module further.

Please post new issues for the drupal 7 version.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.