function getlocations_access_user_location in Get Locations 7
Same name and namespace in other branches
- 6.2 getlocations.module \getlocations_access_user_location()
- 6 getlocations.module \getlocations_access_user_location()
- 7.2 getlocations.module \getlocations_access_user_location()
Access callback: Checks for access permission and if there is a supported locative module installed
Return value
bool
3 calls to getlocations_access_user_location()
- getlocations_search_info_sql in modules/
getlocations_search/ getlocations_search.module - getlocations_search_load_all_locations in modules/
getlocations_search/ getlocations_search.module - getlocations_search_type_options in modules/
getlocations_search/ getlocations_search.module - Collect information about which entity_types have fields for supported module and return an array suitable for a dropdown
1 string reference to 'getlocations_access_user_location'
- getlocations_menu in ./
getlocations.module - Implements hook_menu().
File
- ./
getlocations.module, line 297 - getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_access_user_location() {
if (user_access('access user getlocations') && user_access('access user profiles')) {
$modules = getlocations_supported_modules();
foreach ($modules as $module) {
if (module_exists($module)) {
return TRUE;
}
}
}
return FALSE;
}