Download & Extend

Add rules support (at least the event 'on sort')

Project:DraggableViews
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I really like the Rules module approach and I also think Rules support in DraggableViews would be a very useful feature, so I wrote a patch for it.

Actually the patch simply defines a new DraggableViews event and triggers it when a certain view has been sorted. Is almost all what DraggableViews does :)

It can be used to clear cache on sort, create a PDF automatically on sort and so on...
I hope it can be useful for you too

Thanks to ts145nera for his suggestions

AttachmentSize
draggableviews_add_rules_event.patch1.59 KB

Comments

#1

Status:needs review» fixed

Committed to both 7.x-1.x and 7.x-2.x branches. Thank you!

#2

Don't forget to add a condition: modules_exists('rules') to avoid error on 7.x-2.x

Patch attached.

AttachmentSize
0034-Add-rules-module-detection-to-avoid-error.patch 1.26 KB

#3

Status:fixed» needs review

#4

Status:needs review» fixed

Thank you a lot Pol. You are completely right. Committed!

#5

Hello ygerasimov,

Please, for the next time, include authoring informations (found on the user profile) when you commit, so we can see on our profile that we worked on the module.

This parameter must be added to the commit line. (--author="Pol <Pol@47194.no-reply.drupal.org>")

Thanks !

#6

Status:fixed» closed (fixed)

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

#7

Version:7.x-1.x-dev» 6.x-2.x-dev
Status:closed (fixed)» active

Would love to see a backport of this to 6.x if anyone's willing!