function externalauth_views_data in External Authentication 8
Same name and namespace in other branches
- 2.0.x externalauth.views.inc \externalauth_views_data()
Implements hook_views_data().
File
- ./
externalauth.views.inc, line 11 - Views integration.
Code
function externalauth_views_data() {
$data = [];
$data['authmap'] = [
// Table.
'table' => [
'group' => t('External Authentication Map'),
'join' => [
'users_field_data' => [
'left_field' => 'uid',
'field' => 'uid',
],
],
],
'provider_field' => [
'real field' => 'provider',
'title' => t('Provider'),
'help' => t('The name of the authentication provider providing the authname.'),
'field' => [
'id' => 'standard',
],
'sort' => [
'id' => 'standard',
],
'filter' => [
'id' => 'string',
],
'argument' => [
'id' => 'string',
],
],
'authname' => [
'title' => t('Authname'),
'help' => t('Unique authentication name provided by authentication provider.'),
'field' => [
'id' => 'standard',
],
'sort' => [
'id' => 'standard',
],
'filter' => [
'id' => 'string',
],
'argument' => [
'id' => 'string',
],
],
];
return $data;
}