aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-12-17 14:12:19 -0800
committerfriendica <info@friendica.com>2014-12-17 14:12:19 -0800
commitcc0df5bc241aa552f0fa42a7b809edad48a48e84 (patch)
treeacaff8563a9e6d4aff52d85b039279df2502280f /include/text.php
parentc293b64d608467ba7bcf34e3d3bd05fe3e6b84c6 (diff)
downloadvolse-hubzilla-cc0df5bc241aa552f0fa42a7b809edad48a48e84.tar.gz
volse-hubzilla-cc0df5bc241aa552f0fa42a7b809edad48a48e84.tar.bz2
volse-hubzilla-cc0df5bc241aa552f0fa42a7b809edad48a48e84.zip
ability to generate arbitrary map with [ map=lat/lon] and also free form location using [ map]somewhere[/map] but the second one currently has no plugins available to generate it.
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index 404d34dcb..335dd46ba 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1312,6 +1312,12 @@ function generate_map($coord) {
return $arr['html'];
}
+function generate_named_map($location) {
+ $arr = array('location' => $location, 'html' => '');
+ call_hooks('generate_named_map',$arr);
+ return $arr['html'];
+}
+
function prepare_body(&$item,$attach = false) {