function 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
LocalTaskAssignForm::buildForm in translators/tmgmt_local/src/Form/LocalTaskAssignForm.php
tmgmt_local_abilities in translators/tmgmt_local/tmgmt_local.module
Gets language abilities.

File

translators/tmgmt_local/tmgmt_local.module, line 668
Main module file for the local translation module.

Code

function tmgmt_local_translator_roles() {
  return user_roles(TRUE, 'provide translation services');
}