mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 19:08:49 +00:00
Addon class
plugin moved to Addon src class
This commit is contained in:
parent
e97235353f
commit
0afd633346
81 changed files with 567 additions and 566 deletions
|
@ -19,19 +19,19 @@
|
|||
* them to open the comment window fully and insert the qcomment. Then "Submit" will submit it.
|
||||
*
|
||||
*/
|
||||
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\PConfig;
|
||||
|
||||
function qcomment_install() {
|
||||
register_hook('plugin_settings', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings');
|
||||
register_hook('plugin_settings_post', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings_post');
|
||||
Addon::registerHook('plugin_settings', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings');
|
||||
Addon::registerHook('plugin_settings_post', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings_post');
|
||||
|
||||
}
|
||||
|
||||
|
||||
function qcomment_uninstall() {
|
||||
unregister_hook('plugin_settings', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings');
|
||||
unregister_hook('plugin_settings_post', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings_post');
|
||||
Addon::unregisterHook('plugin_settings', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings');
|
||||
Addon::unregisterHook('plugin_settings_post', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings_post');
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue