Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
drupal.org
realname
Commits
b530d577
Commit
b530d577
authored
Jul 24, 2011
by
joelstein
Committed by
Dave Reid
Jul 24, 2011
Browse files
Issue #1170230: Added basic real name views integration.
parent
48194fe7
Changes
2
Hide whitespace changes
Inline
Side-by-side
realname.module
View file @
b530d577
...
...
@@ -131,6 +131,13 @@ function realname_user_operations_realname_update(array $uids) {
}
}
/**
* Implements hook_views_api().
*/
function
realname_views_api
()
{
return
array
(
'api'
=>
3
);
}
/**
* @addtogroup realname
* @{
...
...
realname.views.inc
0 → 100644
View file @
b530d577
<?php
/**
* @file
* Views integration for the realname module.
*/
/**
* Implements hook_views_data().
*/
function
realname_views_data
()
{
$data
[
'realname'
][
'table'
][
'group'
]
=
t
(
'Realname'
);
$data
[
'realname'
][
'table'
][
'join'
]
=
array
(
'users'
=>
array
(
'left_field'
=>
'uid'
,
'field'
=>
'uid'
,
),
);
$data
[
'realname'
][
'realname'
]
=
array
(
'title'
=>
t
(
'Real name'
),
'help'
=>
t
(
"The user's real name."
),
'field'
=>
array
(
'handler'
=>
'views_handler_field_user'
,
'click sortable'
=>
TRUE
,
),
'sort'
=>
array
(
'handler'
=>
'views_handler_sort'
,
),
'argument'
=>
array
(
'handler'
=>
'views_handler_argument_string'
,
),
'filter'
=>
array
(
'handler'
=>
'views_handler_filter_string'
,
'title'
=>
t
(
'Name'
),
'help'
=>
t
(
"The user's real name. This filter does not check if the user exists and allows partial matching. Does not utilize autocomplete."
)
),
);
return
$data
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment