Problem/Motivation
As we're working in other EBT projects, we're putting a message when the module is uninstalled in order to inform the end-users that the EBT was uninstalled but the block type due to consistence reasons, since the user can have multiple blocks created using this block type.
Steps to reproduce
Proposed resolution
Created the missing ebt_stats.install
Implements the hook_uninstall
Set a message that inform that the ebt stats was uninstalled but the EBT block wasn't because of consistence reasons and if the users needs he/she can remove manually
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork ebt_stats-3351685
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
renatogImplemented. MR is available at: https://git.drupalcode.org/project/ebt_stats/-/merge_requests/6
Comment #5
levmyshkinHi Renato, thank you! Might be a Drupal message from messager will be more useful for developers:
https://www.drupal.org/node/2774931
Usually Recent Log messages report page is full of PHP notices and page not found errors. It will be hard to find the message after EBT module removing.
Comment #6
levmyshkinComment #7
levmyshkinComment #8
renatogHello Ivan!
Agreed, really makes sense. I didn’t remember it. Good catch. Thanks
Comment #10
renatogI tested the suggestion from #5 and really worked well. Using Drupal message from messenger worked fine, and appeared in the log from drush command as well. So it'll works fine even on Drush command or in the UI trhough the CMS
MR created with that: https://git.drupalcode.org/project/ebt_stats/-/merge_requests/7