diff options
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php index 464396d62..0d92c6875 100644 --- a/include/text.php +++ b/include/text.php @@ -1720,4 +1720,20 @@ function find_xchan_in_array($xchan,$arr) { } } return array(); -}
\ No newline at end of file +} + +function get_json_rel_link($j,$rel) { + if(count($j)) + foreach($j as $l) + if($l->rel === $rel) + return $l->href; + return ''; +} + + +// Lots of code to write here + +function magic_link($s) { + return $s; +} +
\ No newline at end of file |