function tmgmt_local_translator_roles in Translation Management Tool 8
Same name and namespace in other branches
- 7 translators/tmgmt_local/tmgmt_local.module \tmgmt_local_translator_roles()
Get roles with 'provide translation services' permissions.
Return value
array An associative array with the role id as the key and the role name as value.
3 calls to tmgmt_local_translator_roles()
- AssignMultiple::buildForm in translators/
tmgmt_local/ src/ Form/ AssignMultiple.php - Form constructor.
- LocalTaskAssignForm::buildForm in translators/
tmgmt_local/ src/ Form/ LocalTaskAssignForm.php - Form constructor.
- tmgmt_local_abilities in translators/
tmgmt_local/ tmgmt_local.module - Gets language abilities.
File
- translators/
tmgmt_local/ tmgmt_local.module, line 665 - Main module file for the local translation module.
Code
function tmgmt_local_translator_roles() {
return user_roles(TRUE, 'provide translation services');
}