summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2009-02-06 20:54:53 (GMT)
committer Earl Miles2009-02-06 20:54:53 (GMT)
commited484da576b6b5e2d8d637d40aab53c65ae46736 (patch)
tree4094e6f6be3b5c511966a7841d1f09a57b53fc7f
parente51893e7626bd72cf6f8210e840863d5d2059b0a (diff)
#368754 by dww: User ID validator, with role testing.
-rw-r--r--CHANGELOG.txt3
-rw-r--r--modules/user.views.inc7
2 files changed, 9 insertions, 1 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 035a953..9413ac9 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -111,4 +111,5 @@ Views 2.3
o #354736 by Shai: Clarification on exposed filter text.
o #364637 by moshe and dww: Allow preprocessors to add row classes to table style.
o #349178 by agentrickard: Add generic link handling plus a custom text field. Also automatic trimming.
- o #368234 by dww and neclimdul: Allow the "Anonymous" user to have a different (or no) name in User: name field. \ No newline at end of file
+ o #368234 by dww and neclimdul: Allow the "Anonymous" user to have a different (or no) name in User: name field.
+ o #368754 by dww: User ID validator, with role testing. \ No newline at end of file
diff --git a/modules/user.views.inc b/modules/user.views.inc
index 73f378f..de5197e 100644
--- a/modules/user.views.inc
+++ b/modules/user.views.inc
@@ -312,6 +312,13 @@ function user_views_plugins() {
'parent' => 'fixed', // so that the parent class is included
),
),
+ 'argument validator' => array(
+ 'user' => array(
+ 'title' => t('User'),
+ 'handler' => 'views_plugin_argument_validate_user',
+ 'path' => drupal_get_path('module', 'views') . '/modules/user', // not necessary for most modules
+ ),
+ ),
);
}