You are here

function getdirections_access_user_location in Get Directions 6.2

Same name and namespace in other branches
  1. 7.3 getdirections.module \getdirections_access_user_location()
  2. 7.2 getdirections.module \getdirections_access_user_location()
1 string reference to 'getdirections_access_user_location'
getdirections_menu in ./getdirections.module
Implementation of hook_menu().

File

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

Code

function getdirections_access_user_location() {
  if (module_exists('location') && user_access('access user getdirections')) {
    return TRUE;
  }
  return FALSE;
}