1
0
Fork 0

more plugin hooks

This commit is contained in:
Friendika 2010-12-25 15:01:02 -08:00
commit f6556e0a72
3 changed files with 22 additions and 2 deletions

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();