function legal_languages_access in Legal 7
Same name and namespace in other branches
- 6.8 legal.module \legal_languages_access()
- 7.2 legal.module \legal_languages_access()
Access control callback. Check that Locale module is enabled and user has access permission.
1 string reference to 'legal_languages_access'
- legal_menu in ./
legal.module - Implements hook_menu().
File
- ./
legal.module, line 1019 - Module file for Legal.
Code
function legal_languages_access($perm) {
if (!module_exists('locale')) {
return FALSE;
}
if (!user_access($perm)) {
return FALSE;
}
return TRUE;
}