email_changelog-8.x-1.0-alpha1/email_changelog.views.inc
email_changelog.views.inc
<?php
/**
* @file
* Provide views data for dblog.module.
*/
/**
* Implements hook_views_data().
*/
function email_changelog_views_data() {
$data = [];
$data['email_changelog']['table']['group'] = t('Email Changelog');
$data['email_changelog']['table']['wizard_id'] = 'email_changelog';
$data['email_changelog']['table']['base'] = [
'field' => 'id',
'title' => t('Email Log entries'),
'help' => t('Contains a list of email change log entries.'),
];
$data['email_changelog']['id'] = [
'title' => t('Email Changelog ID'),
'help' => t('Unique email changelog event ID.'),
'field' => [
'id' => 'standard',
],
'filter' => [
'id' => 'numeric',
],
'argument' => [
'id' => 'numeric',
],
'sort' => [
'id' => 'standard',
],
];
$data['email_changelog']['uid'] = [
'title' => t('UID'),
'help' => t('The user ID of the user on which the log entry was written.'),
'field' => [
'id' => 'standard',
],
'filter' => [
'id' => 'numeric',
],
'argument' => [
'id' => 'numeric',
],
'relationship' => [
'title' => t('User'),
'help' => t('The user on which the log entry as written.'),
'base' => 'users_field_data',
'base field' => 'uid',
'id' => 'standard',
],
];
$data['email_changelog']['old_email_address'] = [
'title' => t('Old Email Address'),
'help' => t('The old email address of the log entry.'),
'field' => [
'id' => 'standard',
],
'argument' => [
'id' => 'string',
],
'filter' => [
'id' => 'string',
],
'sort' => [
'id' => 'standard',
],
];
$data['email_changelog']['new_email_address'] = [
'title' => t('New Email Address'),
'help' => t('The new email address of the log entry.'),
'field' => [
'id' => 'standard',
],
'argument' => [
'id' => 'string',
],
'filter' => [
'id' => 'string',
],
'sort' => [
'id' => 'standard',
],
];
$data['email_changelog']['data'] = [
'title' => t('Data'),
'help' => t('The data variables of the log entry in a serialized format.'),
'field' => [
'id' => 'serialized',
'click sortable' => FALSE,
],
'argument' => [
'id' => 'string',
],
'filter' => [
'id' => 'string',
],
'sort' => [
'id' => 'standard',
],
];
$data['email_changelog']['logged_in_uid'] = [
'title' => t('Logged in user UID'),
'help' => t('The user ID of the user on which the log entry was written.'),
'field' => [
'id' => 'standard',
],
'filter' => [
'id' => 'numeric',
],
'argument' => [
'id' => 'numeric',
],
'relationship' => [
'title' => t('User'),
'help' => t('The user on which the log entry as written.'),
'base' => 'users_field_data',
'base field' => 'uid',
'id' => 'standard',
],
];
$data['email_changelog']['location'] = [
'title' => t('Location'),
'help' => t('URL of the origin of the event.'),
'field' => [
'id' => 'standard',
],
'argument' => [
'id' => 'string',
],
'filter' => [
'id' => 'string',
],
'sort' => [
'id' => 'standard',
],
];
$data['email_changelog']['timestamp'] = [
'title' => t('Timestamp'),
'help' => t('Date when the event occurred.'),
'field' => [
'id' => 'date',
],
'argument' => [
'id' => 'date',
],
'filter' => [
'id' => 'date',
],
'sort' => [
'id' => 'date',
],
];
return $data;
}
