Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
events_log_track-3400339
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
events_log_track-3400339
Commits
66988595
Commit
66988595
authored
2 years ago
by
mouad jamaoui
Committed by
Stephen Mustgrave
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3276467
: Event_log_track table exists after reinstalling the module
parent
cb6032f1
No related branches found
Branches containing commit
Tags
3.0.1
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
event_log_track.install
+11
-0
11 additions, 0 deletions
event_log_track.install
event_log_track.module
+0
-17
0 additions, 17 deletions
event_log_track.module
with
11 additions
and
17 deletions
event_log_track.install
+
11
−
0
View file @
66988595
...
...
@@ -84,6 +84,17 @@ function event_log_track_schema() {
return
$schema
;
}
/**
* Implements hook_uninstall().
*/
function
event_log_track_uninstall
()
{
// Delete table on module uninstall.
$schema
=
Database
::
getConnection
()
->
schema
();
if
(
$schema
->
tableExists
(
'event_log_track'
))
{
$schema
->
dropTable
(
'event_log_track'
);
}
}
/**
* Increase "ref_char" field size.
*/
...
...
This diff is collapsed.
Click to expand it.
event_log_track.module
+
0
−
17
View file @
66988595
...
...
@@ -197,23 +197,6 @@ function event_log_track_add_submit_handler(array &$element, string $callback) {
}
}
/**
* Implements hook_form_FORM_ID_alter().
*/
function
event_log_track_form_system_modules_uninstall_alter
(
&
$form
,
&
$form_state
)
{
foreach
(
$form
[
'uninstall'
]
as
$name
=>
&
$module
)
{
if
(
str_starts_with
(
$name
,
'event_log_track'
))
{
$form
[
'uninstall'
][
$name
][
'#disabled'
]
=
TRUE
;
$form
[
'uninstall'
][
$name
][
'#description'
]
=
'<strong>'
.
t
(
'LOCKED.'
)
.
'</strong>'
;
$form
[
'modules'
][
$name
][
'description'
][
'#markup'
]
=
$form
[
'modules'
][
$name
][
'description'
][
'#markup'
]
.
'<br/><strong>'
.
t
(
'CANNOT BE UNINSTALLED.'
)
.
'</strong>'
;
}
}
}
/**
* Implements hook_cron().
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment