Summary
When an action is created using hook_action_info(), that action will remain in the Actions list (admin/settings/actions) and 'actions' database table after the module is disabled.
Steps to Reproduce
- Install and enable the 'actionsdemo' module. (attached)
- Visit admin/settings/actions and see it has been added. It is also in the 'actions' database table.
- Disable the module.
- It is still in the 'actions' DB table and on the Actions page. Empty cache, rebuild menus, etc. doesn't update this page. It must be manually deleted from the 'actions' table.
Expected Behaviour
I expect the Actions page (and database table) to only show available actions.
What happened instead?
I am given a list containing actions which are no longer available.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | actionsdemo.zip | 1.72 KB | vijju311985 |
| actionsdemo.zip | 1.42 KB | mikewheaton |
Comments
Comment #1
vijju311985 commentedHi mikewheaton,
If you want to automated delete the action after uninstalling(disable) the module then you have to implement actionsdemo_uninstall hook function in that you have to write a query which will delete you
action from actions table .
I am attaching the actionsdemo Complete module
Regards
J. Vijay Kumar
Comment #2
pasqualle