Active
Project:
Get Directions
Version:
7.x-2.3
Component:
Miscellaneous
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2013 at 05:14 UTC
Updated:
5 Mar 2013 at 05:14 UTC
Using your example below from the README file, is it possible to do this but create an input box for the From and have the destination preset? It would be great to have the swap To and From still enabled too.
Here is a simple way to create a block with a form and map in it. Ensure you have php filter enabled and add
if (arg(0) == 'node') {
$nid = arg(1);
if (is_numeric($nid) && $nid > 0) {
echo getdirections_setlocation('to', $nid);
}
}
Sorry for all the pesting. I know little to nothing about PHP so it's a bit of a struggle understanding this stuff...