You are here

function tmgmt_local_translator_roles in Translation Management Tool 7

Same name and namespace in other branches
  1. 8 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()
tmgmt_local_capabilities in translators/tmgmt_local/tmgmt_local.module
Gets language capabilities.
tmgmt_local_translation_assign_form in translators/tmgmt_local/includes/tmgmt_local.pages.inc
Form for assigning multiple tasks to translator.
tmgmt_local_translation_reassign_form in translators/tmgmt_local/includes/tmgmt_local.pages.inc
Similar to form for assigning multiple tasks to translator, but here we also allow no user selection.

File

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

Code

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