Provide a "my saved searches" block

greggles - March 3, 2009 - 13:57
Project:Views Saved Searches
Version:6.x-1.0-beta1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

I'd like to provide a block of my saved searches. Attached is a basic patch which adds this for a site of mine, but has the distinct problem of hardcoding the view ID and view URL. I'm posting here in the hopes that others can help finalize it so it can be more generalized.

AttachmentSize
saved_searches_user.patch2.06 KB

#1

Wim Leers - March 24, 2009 - 17:50
Title:provide a block of my saved searches» Provide a "my saved searches" block

Initial code review:
- Indentation problems in hook_block().
- Doxygen is missing for views_savedsearches_per_user()
- What's this for exactly:

+  // hack to add support for saving advanced views
+  if ($params['adv-flag']) {
+    $filters['adv-flag'] = $params['adv-flag'];
+  }

Thanks for getting this started! :)

#2

greggles - March 25, 2009 - 04:50

Sure, this was a hack on my site...I don't know how to do it properly so I can't drive it home.

The hardcoded "adv-flag" is a view on that site. This obviously has to be generalized quite a bit.

#3

pydubreucq - October 1, 2009 - 11:54

Hi,
I'm very interesting by this feature...
I would like to know if this feature is planned on the new version of views saved search ?
Thanks by advance ;)
Best Regards,
Pyd

 
 

Drupal is a registered trademark of Dries Buytaert.