aboutsummaryrefslogtreecommitdiffstats
path: root/unshorturl
diff options
context:
space:
mode:
Diffstat (limited to 'unshorturl')
-rw-r--r--unshorturl/unshorturl.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/unshorturl/unshorturl.php b/unshorturl/unshorturl.php
index cd09e13..7c45743 100644
--- a/unshorturl/unshorturl.php
+++ b/unshorturl/unshorturl.php
@@ -15,13 +15,24 @@ use Zotlabs\Lib\Apps;
use Zotlabs\Extend\Hook;
function unshorturl_install() {
+ Hook::register('feature_settings', 'addon/unshorturl/unshorturl.php', 'unshorturl_feature_settings', 1);
Hook::register('prepare_body', 'addon/unshorturl/unshorturl.php', 'unshorturl_prepare_body', 1);
}
function unshorturl_uninstall() {
+ Hook::unregister('feature_settings', 'addon/unshorturl/unshorturl.php', 'unshorturl_feature_settings');
Hook::unregister('prepare_body', 'addon/unshorturl/unshorturl.php', 'unshorturl_prepare_body');
}
+function unshorturl_feature_settings(&$a, &$html) {
+ $html =
+ '<div class="settings-block">'
+ . '<h3>UnshortURL</h3>'
+ . '<p>Expand shortened URL\'s into their full representation.</p>'
+ . '<div class="clear"></div>'
+ . '</div>';
+}
+
function unshorturl_get_long_url($shorturl) {
$ch = curl_init($shorturl);
curl_setopt_array($ch, [