translations.features.user_permission.inc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. /**
  3. * @file
  4. * translations.features.user_permission.inc
  5. */
  6. /**
  7. * Implements hook_user_default_permissions().
  8. */
  9. function translations_user_default_permissions() {
  10. $permissions = array();
  11. // Exported permission: 'access selected languages'.
  12. $permissions['access selected languages'] = array(
  13. 'name' => 'access selected languages',
  14. 'roles' => array(
  15. 'administrator' => 'administrator',
  16. 'root' => 'root',
  17. ),
  18. 'module' => 'materio_translator',
  19. );
  20. // Exported permission: 'administer content translations'.
  21. $permissions['administer content translations'] = array(
  22. 'name' => 'administer content translations',
  23. 'roles' => array(
  24. 'root' => 'root',
  25. ),
  26. 'module' => 'i18n_node',
  27. );
  28. // Exported permission: 'administer languages'.
  29. $permissions['administer languages'] = array(
  30. 'name' => 'administer languages',
  31. 'roles' => array(
  32. 'root' => 'root',
  33. ),
  34. 'module' => 'locale',
  35. );
  36. // Exported permission: 'administer user translation language access'.
  37. $permissions['administer user translation language access'] = array(
  38. 'name' => 'administer user translation language access',
  39. 'roles' => array(
  40. 'administrator' => 'administrator',
  41. 'root' => 'root',
  42. ),
  43. 'module' => 'materio_translator',
  44. );
  45. // Exported permission: 'delete_strings'.
  46. $permissions['delete_strings'] = array(
  47. 'name' => 'delete_strings',
  48. 'roles' => array(
  49. 'root' => 'root',
  50. ),
  51. 'module' => 'materio_translator',
  52. );
  53. // Exported permission: 'translate interface'.
  54. $permissions['translate interface'] = array(
  55. 'name' => 'translate interface',
  56. 'roles' => array(
  57. 'Translator' => 'Translator',
  58. 'administrator' => 'administrator',
  59. 'root' => 'root',
  60. ),
  61. 'module' => 'locale',
  62. );
  63. return $permissions;
  64. }