mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-10 18:38:49 +00: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
|
@ -7,20 +7,20 @@
|
|||
* Status: Unsupported
|
||||
*
|
||||
*/
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\PConfig;
|
||||
|
||||
function notimeline_install()
|
||||
{
|
||||
Addon::registerHook('addon_settings', 'addon/notimeline/notimeline.php', 'notimeline_settings');
|
||||
Addon::registerHook('addon_settings_post', 'addon/notimeline/notimeline.php', 'notimeline_settings_post');
|
||||
Hook::register('addon_settings', 'addon/notimeline/notimeline.php', 'notimeline_settings');
|
||||
Hook::register('addon_settings_post', 'addon/notimeline/notimeline.php', 'notimeline_settings_post');
|
||||
}
|
||||
|
||||
function notimeline_uninstall()
|
||||
{
|
||||
Addon::unregisterHook('addon_settings', 'addon/notimeline/notimeline.php', 'notimeline_settings');
|
||||
Addon::unregisterHook('addon_settings_post', 'addon/notimeline/notimeline.php', 'notimeline_settings_post');
|
||||
Hook::unregister('addon_settings', 'addon/notimeline/notimeline.php', 'notimeline_settings');
|
||||
Hook::unregister('addon_settings_post', 'addon/notimeline/notimeline.php', 'notimeline_settings_post');
|
||||
}
|
||||
|
||||
function notimeline_settings_post($a, $post)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue