Needs review
Project:
Custom reports
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Dec 2010 at 16:21 UTC
Updated:
3 Feb 2011 at 10:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
pobster commentedOkay so I've addressed a few niggles I have with this module;
1. Don't use t() in hook_menu.
2. Naming conflict with hook_access.
3. Missing t() in admin form item.
4. Old D5.x parameters in _submit callback.
5. Removed t() from node_type creation (it can't refer back, it's stored in the db).
6. Exclude node-type from search index/ advanced search form.
7. Removed header() in favour of drupal_set_header().
8. Minor punctuation and other changes… See diff!
The _clean_quotes() function still concerns me though, if you have a query with both single and double quotes - surely this will break it? …But that's another issue...
Thanks,
Pobster
Comment #2
pobster commentedBalls… Note that the doxygen tip for _customreports_alter_advanced_search_form() is incorrect - apologies nobody is perfect! Won't post another patch, just pointing this out.
Thanks,
Pobster
Comment #3
pobster commentedOkay, you can ignore this if you wish… It's an old string CSV parser that I found on php.net a couple of years ago, I've reused it in dozens of projects! It's pretty tidy… Unfortunately I've completely forgotten who wrote it, so can't give any credit...
Thanks,
Pobster
edit: Note that it includes the patch from above, and also addresses the incorrect doxygen tip.
Comment #4
a_c_m commentedWill try to review this, this weekend at drupal dev days.