You are here

function getdirections_ua_get in Get Directions 7.3

Same name and namespace in other branches
  1. 7.2 getdirections.module \getdirections_ua_get()

Return value

Returns a string of mobile compatible user agents

2 calls to getdirections_ua_get()
getdirections_is_mobile in ./getdirections.module
getdirections_settings_form in ./getdirections.admin.inc
Function to display the getdirections admin settings form

File

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

Code

function getdirections_ua_get() {
  $default = array(
    'ua_string' => "iphone|ipad|android|blackberry|blazer|bolt|symbian|mobile safari|fennec|gobrowser|iemobile|maemo browser|profile midp|minimo|kindle|opera mini|opera mobi|skyfire|teashark|uzardweb",
  );
  $getdirections_ua = variable_get('getdirections_ua', $default);
  return $getdirections_ua;
}