You are here

function getdirections_access_location in Get Directions 7.3

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

menu access functions

1 string reference to 'getdirections_access_location'
getdirections_menu in ./getdirections.module
Implement hook_menu().

File

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

Code

function getdirections_access_location() {
  if (user_access('access gmap getdirections')) {
    if (getdirections_get_current_supported_module()) {
      return TRUE;
    }
  }
  return FALSE;
}