Hi Everyone,
I'd like to know which code I can use to make sure a UDT is removed when a module in uninstalled. It is a UDT that gets created on installation of the same module.
Thanks in advance for your reply.
Greetings,
Remove a UDT on uninstall of a module
Re: Remove a UDT on uninstall of a module
based on JoMorgs response (other thread) I'd try
untested.
Code: Select all
$usertagops = cmsms()->GetUserTagOperations();
$tagname = 'foo';
$usertagops->RemoveUserTag($tagname);
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Remove a UDT on uninstall of a module
Just a silly question.... why is your module creating/removing UDT's ?
PHP code is what module actions are for.
You may want to check out the new (not yet announced) module writing tutorial that is available in the 'Advanced' section of the docs site.
PHP code is what module actions are for.
You may want to check out the new (not yet announced) module writing tutorial that is available in the 'Advanced' section of the docs site.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Remove a UDT on uninstall of a module
Thanks Rotezecke and Calguy1000.
I've now indeed realized I can much better use actions to do this.
Thanks anyway.
I've now indeed realized I can much better use actions to do this.
Thanks anyway.