Closed (fixed)
Project:
modr8
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2012 at 16:20 UTC
Updated:
8 Aug 2012 at 07:29 UTC
Jump to comment: Most recent file
Comments
Comment #1
mathankumarc commentedThanks for your effort.
New features are going into 7.x
Comment #2
mathankumarc commentedHere is patch. This will allow you to filter by the content type and/or username.
Comment #3
pwolanin commentedtypo:
//Theming is not neede hereI think you should use button-level submit functions. Switch on 'op' is deprecated. Also - it would seem odd that the filter creteria can change at the same time you submit moderation actions?
Comment #4
pwolanin commentedif you rewrite the filter form and set the method to 'get' as the original patch does, I would suggest setting also
per http://api.drupal.org/api/drupal/includes!form.inc/function/drupal_prepa... to skip the form token which will otherwise get added to the URL and potentially get logged more readily.
Comment #5
mathankumarc commentedHere is the modified patch. Added reset button, however its not working.
Comment #6
pwolanin commentedSo, the reset button should just send the user to a path with no filters?
maybe need to be this?
Also, I'd make the query params more specific. e.g. 'modr8-user' instead of 'user'
Comment #7
pwolanin commentedOh, I see - the reset button is trying to do something more complicated.
For now - you can just make it a reset link?
Comment #8
mathankumarc commentedyeah.
thats perfect. will modify it.
$form_state['rebuild'] = TRUE;Will clear the values in the from. however I dunno how to make it work. For now I will make this as a link
Comment #9
mathankumarc commentedModified the patch as per the review comments.
Comment #10
pwolanin commentedminor improvement:
means I cannot filter for anonymous user content.
Maybe better:
Comment #11
pwolanin commentedI think this might be wrong?
should be like:
Comment #12
mathankumarc commentedYeah got it. If I use the empty() in the first one, then two conditions are not needed in the second one.
Here is the modified patch. Removed some unwanted conditions.
Comment #13
pwolanin commentedlooks reasonable - if it works, probably RTBC.
Comment #14
mathankumarc commentedTested and Committed to dev.
Comment #15
bduell commentedI used the above patch to do the same for the 6.x-1.x version (only, allowing multiple types to be selected because that's what we needed).
Please find the attached patch.
Thanks!
Comment #17
mathankumarc commented@BDuell
I'm glad that, it worked for you. But I don't have any plans to add any new features into 6.x
Comment #18
ssn commented@BDuell Many Thanks dude, your patch is exactly what i was looking for. I made some changes in the get_modr8_node_types() function so that the labels for the content types are displayed as options in select list instead of machine names of the content types. Here is the code hope it will make the select list more user friendly.
This is a little help to make the filter more user friendly.
Again many thanks BDuell