You are here

function getdirections_access_user_location in Get Directions 7.2

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

File

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

Code

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