function legal_languages_access in Legal 6.8
Same name and namespace in other branches
- 7.2 legal.module \legal_languages_access()
- 7 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 - Implementation of hook_menu().
File
- ./
legal.module, line 700 - Displays Terms & Conditions, and makes sure they are accepted before registration is accepted.
Code
function legal_languages_access($perm) {
if (!module_exists('locale')) {
return FALSE;
}
if (!user_access($perm)) {
return FALSE;
}
return TRUE;
}