Browse Source

calling hook has changed on Friendica development branch on Jan 20th 2018

master
Tobias Diekershoff 4 years ago
parent
commit
cc32f07105
  1. 7
      typography.php

7
typography.php

@ -2,18 +2,19 @@
/*
* Name: Typography
* Description: Applies typographical enhancements to the postings before displaying them
* Version: 0.1
* Version: 0.2
* Author: Tobias Diekershoff <tobias@f.diekershoff.de>
* License: GPL 2.0
*/
use Friendica\Core\PConfig;
use Friendica\Core\Addon;
function typography_install () {
register_hook ('prepare_body', 'addon/typography/typography.php', 'typography_render' );
Addon::registerHook ('prepare_body', 'addon/typography/typography.php', 'typography_render' );
}
function typography_uninstall () {
unregister_hook ('prepare_body', 'addon/typography/typography.php', 'typography_render' );
Addon::unregisterHook ('prepare_body', 'addon/typography/typography.php', 'typography_render' );
}
function typography_render ( &$a, &$o) {
require_once('php-typography/php-typography.php');

Loading…
Cancel
Save