Add missing widgets_uninstall function to widgets plugin
This commit is contained in:
parent
3ea145fae7
commit
f93106de3a
1 changed files with 5 additions and 2 deletions
|
@ -7,12 +7,15 @@
|
||||||
|
|
||||||
|
|
||||||
function widgets_install() {
|
function widgets_install() {
|
||||||
// we need some hooks, for the configuration and for sending tweets
|
|
||||||
register_hook('plugin_settings', 'addon/widgets/widgets.php', 'widgets_settings');
|
register_hook('plugin_settings', 'addon/widgets/widgets.php', 'widgets_settings');
|
||||||
register_hook('plugin_settings_post', 'addon/widgets/widgets.php', 'widgets_settings_post');
|
register_hook('plugin_settings_post', 'addon/widgets/widgets.php', 'widgets_settings_post');
|
||||||
|
|
||||||
logger("installed widgets");
|
logger("installed widgets");
|
||||||
}
|
}
|
||||||
|
function widgets_uninstall() {
|
||||||
|
unregister_hook('plugin_settings', 'addon/widgets/widgets.php', 'widgets_settings');
|
||||||
|
unregister_hook('plugin_settings_post', 'addon/widgets/widgets.php', 'widgets_settings_post');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function widgets_settings_post(){
|
function widgets_settings_post(){
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue