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.

This commit is contained in:
friendica
2014-12-17 14:12:19 -08:00
parent c293b64d60
commit cc0df5bc24
2 changed files with 25 additions and 0 deletions

View File

@@ -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) {