more plugin hooks

This commit is contained in:
Friendika
2010-12-25 15:01:02 -08:00
parent d6a75a0391
commit f6556e0a72
3 changed files with 22 additions and 2 deletions
+11
View File
@@ -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();