aboutsummaryrefslogtreecommitdiffstats
path: root/mod/parse_url.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-12-25 15:01:02 -0800
committerFriendika <info@friendika.com>2010-12-25 15:01:02 -0800
commitf6556e0a720bb3de29107520464aa4de242e1631 (patch)
treedfe09eba4c994669333977243f9e906871d8f2c9 /mod/parse_url.php
parentd6a75a0391bfe2021cca0bba9f054044ef79cab7 (diff)
downloadvolse-hubzilla-f6556e0a720bb3de29107520464aa4de242e1631.tar.gz
volse-hubzilla-f6556e0a720bb3de29107520464aa4de242e1631.tar.bz2
volse-hubzilla-f6556e0a720bb3de29107520464aa4de242e1631.zip
more plugin hooks
Diffstat (limited to 'mod/parse_url.php')
-rw-r--r--mod/parse_url.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/mod/parse_url.php b/mod/parse_url.php
index 1561eb8a3..b3b42b6cb 100644
--- a/mod/parse_url.php
+++ b/mod/parse_url.php
@@ -11,6 +11,16 @@ function parse_url_content(&$a) {
$template = "<a href=\"%s\" >%s</a>%s";
+
+ $arr = array('url' => $url, 'text' => '');
+
+ call_hooks('parse_link', $arr);
+
+ if(strlen($arr['text'])) {
+ echo $arr['text'];
+ killme();
+ }
+
if($url)
$s = fetch_url($url);
else {
@@ -18,6 +28,7 @@ function parse_url_content(&$a) {
killme();
}
+
if(! $s) {
echo sprintf($template,$url,$url,'');
killme();