Similar entries: patch to allow hook_rewrite_sql calls

schildi - July 16, 2009 - 08:58
Project:Similar Entries
Version:HEAD
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:patch (to be ported)
Description

currently "similar entries" does not open other modules the way to extend the query by implementing the hook_rewrite_sql. The attached patch should resolve this.
Please check!

AttachmentSize
similar-rewrite.patch1.46 KB

#1

deekayen - July 16, 2009 - 11:47
Status:needs review» needs work

I get the general idea of what's wrong, but your patch seems to be against a customized version of similar. I'll try to apply it by hand.

#2

deekayen - July 16, 2009 - 11:51

Nevermind, you modified the query as well. Please make a clean patch.

#3

schildi - July 16, 2009 - 12:34

Oh, yes! Sorry for the mistake!
When reading your comment I first did not understand what you want to tell me.
But then I realized that I had modified the source a long time ago.
So I unpacked the original source and applied my modifications again.

Hopefully the patch is correct now!

AttachmentSize
similar-rewrite-2.patch 2.09 KB

#4

deekayen - July 16, 2009 - 13:49
Version:5.x-2.0» HEAD
Status:needs work» patch (to be ported)

committed to DRUPAL-5 and DRUPAL-6--1

 
 

Drupal is a registered trademark of Dries Buytaert.