mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Replace deprecated Addon::*registerHook by Hook::*register
This commit is contained in:
parent
eaeb834819
commit
c27b1cb66f
82 changed files with 625 additions and 630 deletions
|
@ -5,15 +5,15 @@
|
|||
* Version: 1.0
|
||||
* Author: Thomas Willingham <https://kakste.com/profile/beardyunixer>
|
||||
*/
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\PConfig;
|
||||
|
||||
function group_text_install() {
|
||||
|
||||
Addon::registerHook('addon_settings', 'addon/group_text/group_text.php', 'group_text_settings');
|
||||
Addon::registerHook('addon_settings_post', 'addon/group_text/group_text.php', 'group_text_settings_post');
|
||||
Hook::register('addon_settings', 'addon/group_text/group_text.php', 'group_text_settings');
|
||||
Hook::register('addon_settings_post', 'addon/group_text/group_text.php', 'group_text_settings_post');
|
||||
|
||||
Logger::log("installed group_text");
|
||||
}
|
||||
|
@ -21,8 +21,8 @@ function group_text_install() {
|
|||
|
||||
function group_text_uninstall() {
|
||||
|
||||
Addon::unregisterHook('addon_settings', 'addon/group_text/group_text.php', 'group_text_settings');
|
||||
Addon::unregisterHook('addon_settings_post', 'addon/group_text/group_text.php', 'group_text_settings_post');
|
||||
Hook::unregister('addon_settings', 'addon/group_text/group_text.php', 'group_text_settings');
|
||||
Hook::unregister('addon_settings_post', 'addon/group_text/group_text.php', 'group_text_settings_post');
|
||||
|
||||
|
||||
Logger::log("removed group_text");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue