* Author: Johannes Schwab <https://friendica.jschwab.org/profile/ddorian>
*/
use Friendica\Core\Addon;
+use Friendica\Core\Hook;
use Friendica\Core\Logger;
function smileybutton_install() {
// Call hooks to get aditional smileies from other addons
$params = ['texts' => $texts, 'icons' => $icons, 'string' => ""]; //changed
- Addon::callHooks('smilie', $params);
+ Hook::callAll('smilie', $params);
//Generate html for smiley list
$s = "<table class=\"smiley-preview\"><tr>\n\t";
use Friendica\Content\Text\HTML;
use Friendica\Core\Addon;
use Friendica\Core\Authentication;
+use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
Authentication::setAuthenticatedSessionForUser($record);
$_SESSION["allow_api"] = true;
- Addon::callHooks('logged_in', $a->user);
+ Hook::callAll('logged_in', $a->user);
}