Small addition to the filters section of views_user.inc. May be slow for site with many users, but no more so than author username filter. Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| views_user.patch | 907 bytes | ngstigator |
Small addition to the filters section of views_user.inc. May be slow for site with many users, but no more so than author username filter. Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| views_user.patch | 907 bytes | ngstigator |
Comments
Comment #1
Roman S commentedUntil the patch makes it into Views, this can be accomplished with hook_views_tables_alter(). Something along the lines of this:
Don't forget the clear the cache_views table in order for the new filter to appear in the list.
Comment #2
ngstigator commentedthanks for your suggestion, but i did originally implement my code in a custom module, and thought that it would be useful enough to be committed.
Comment #3
sunI believe we do not use the term 'active' in Drupal.
Comment #4
Roman S commentedsun - what do you mean? The two statuses available for users are active and blocked (per admin/user/user). The code above is similar to the Active filter created by Usernode.
Comment #5
merlinofchaos commentedYea, Views 2 uses the same terminology. Patch looks reasonable to me.
Comment #6
esmerel commentedAt this time, only security fixes will be made to the 5.x version of Views.