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 |
Jump to:
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.
| Attachment | Size |
|---|---|
| saved_searches_user.patch | 2.06 KB |

#1
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
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
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