You are here

function getdirections_via_load in Get Directions 7.3

Same name and namespace in other branches
  1. 6.2 getdirections.module \getdirections_via_load()
  2. 6 getdirections.module \getdirections_via_load()
  3. 7.2 getdirections.module \getdirections_via_load()

File

./getdirections.module, line 241
Fetches google map directions.

Code

function getdirections_via_load($arg) {
  if (stristr($arg, ',')) {
    $x = explode(',', $arg);
    foreach ($x as $v) {
      if (!is_numeric($v)) {
        return FALSE;
      }
    }
    return $arg;
  }
  return FALSE;
}