Closed (won't fix)
Project:
Drupal core
Version:
8.2.x-dev
Component:
user.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Jul 2009 at 13:52 UTC
Updated:
21 Jan 2017 at 19:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
emichan commentedHi,
I'd like to second this request. hook_user_filters would be very useful when adding lots of data to the user object. A hook_user_filters implementation could return an associative array of filters in the same form the user_filters function currently uses:
Thanks!
Comment #2
sun.core commentedComment #3
rohitst commentedCan this be done in Drupal 6.x , i see no other way than hack the core :(
Comment #4
bfroehle commentedThis would be very convenient for the cas module which could then allow to filter by users with associated cas entries in the {authmap} table.
I've submitted some 'minimally intrusive' code. Basic changes to 7.x-dev:
$_SESSION['user_overview_filter']).$filters = user_filters()with$filters = module_invoke_all('user_filters');Given the required change to user_build_filter_query(), it'd be hard to argue that this should go in 7.x.... but with some slight modifications, it could be implemented in a way that didn't break any of the existing functionality.
Comment #5
bfroehle commentedThese lines were based upon an older method which as superseded by the 'callback' approach.
Powered by Dreditor.
Comment #6
bfroehle commentedMajor revisions here. I'll update the issue status when I get a chance.
Comment #8
bfroehle commentedLast patch failed because I bungled up the structure of $applied_filters. This one is manually tested to work.
Comment #9
thedavidmeister commentedPatch no longer applies.
error: patch failed: core/modules/user/user.admin.inc:33
error: core/modules/user/user.admin.inc: patch does not apply
error: patch failed: core/modules/user/user.api.php:183
error: core/modules/user/user.api.php: patch does not apply
error: patch failed: core/modules/user/user.module:3293
error: core/modules/user/user.module: patch does not apply
That said though, is this issue still relevant with Views in core now?
Comment #12
dpiWe use Views nowdays..
Marked as outdated