function tfa_views_data_alter in Two-factor Authentication (TFA) 8
Implements hook_views_data_alter().
File
- ./
tfa.views.inc, line 11 - TFA views configuration.
Code
function tfa_views_data_alter(array &$data) {
$data['users']['tfa_enabled_field'] = [
'title' => t('TFA enabled'),
'real field' => 'uid',
'field' => [
'title' => t('TFA enabled'),
'help' => t('Whether the user has enabled two-factor authentication.'),
'id' => 'tfa_enabled_field',
],
];
}