workflow patch, login_tracker tackeover, user_csv_import, string_translation_ui, path_alias_xt

This commit is contained in:
2026-09-25 14:50:12 +02:00
parent e6724eba34
commit 126cbe2107
16 changed files with 828 additions and 168 deletions
@@ -0,0 +1,49 @@
<?php
/**
* @file
* Install, update, and uninstall functions for the Login Tracker module.
*/
/**
* Implements hook_schema().
*/
function login_tracker_schema() {
$schema['login_tracker'] = [
'fields' => [
'record_id' => [
'type' => 'serial',
'not null' => TRUE,
'description' => 'Unique ID for this record.',
],
'uid' => [
'type' => 'int',
'not null' => TRUE,
'description' => 'UID of user.',
],
'login_timestamp' => [
'type' => 'int',
'not null' => TRUE,
'description' => "Timestamp for the user's login.",
],
'data' => [
'type' => 'text',
'size' => 'medium',
'not null' => TRUE,
'description' => "Additional data stored at time of login.",
],
],
'indexes' => [
'login_tracker_uid' => ['uid'],
'login_tracker_login_timestamp' => ['login_timestamp'],
],
'foreign keys' => [
'uid' => [
'table' => 'users',
'columns' => ['uid' => 'uid'],
],
],
'primary key' => ['record_id'],
];
return $schema;
}