mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 17:08:48 +00:00
[various] Remove redundant uninstall functions
- All hooks (current and obsolete) are removed automatically during addon uninstall
This commit is contained in:
parent
aa25a9d762
commit
203672cf27
77 changed files with 229 additions and 887 deletions
|
@ -55,18 +55,6 @@ function windowsphonepush_install()
|
|||
Logger::log("installed windowsphonepush");
|
||||
}
|
||||
|
||||
function windowsphonepush_uninstall()
|
||||
{
|
||||
/* uninstall unregisters any hooks created with register_hook
|
||||
* during install. Don't delete data in table `pconfig`.
|
||||
*/
|
||||
Hook::unregister('cron', 'addon/windowsphonepush/windowsphonepush.php', 'windowsphonepush_cron');
|
||||
Hook::unregister('addon_settings', 'addon/windowsphonepush/windowsphonepush.php', 'windowsphonepush_settings');
|
||||
Hook::unregister('addon_settings_post', 'addon/windowsphonepush/windowsphonepush.php', 'windowsphonepush_settings_post');
|
||||
|
||||
Logger::log("removed windowsphonepush");
|
||||
}
|
||||
|
||||
/* declare the windowsphonepush function so that /windowsphonepush url requests will land here */
|
||||
function windowsphonepush_module()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue