summaryrefslogtreecommitdiffstats
path: root/modules/features/ferry_i18n/ferry_i18n.features.user_permission.inc
blob: ffd66a844ff8874066d5be03f2e22bcb8209af2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
/**
 * @file
 * ferry_i18n.features.user_permission.inc
 */

/**
 * Implements hook_user_default_permissions().
 */
function ferry_i18n_user_default_permissions() {
  $permissions = array();

  // Exported permission: administer content translations.
  $permissions['administer content translations'] = array(
    'name' => 'administer content translations',
    'roles' => array(
      0 => 'administrator',
      1 => 'editor-in-chief',
    ),
    'module' => 'i18n_node',
  );

  // Exported permission: administer languages.
  $permissions['administer languages'] = array(
    'name' => 'administer languages',
    'roles' => array(
      0 => 'administrator',
    ),
    'module' => 'locale',
  );

  // Exported permission: manage en translation overview priorities.
  $permissions['manage en translation overview priorities'] = array(
    'name' => 'manage en translation overview priorities',
    'roles' => array(
      0 => 'administrator',
    ),
    'module' => 'translation_overview',
  );

  // Exported permission: translate admin strings.
  $permissions['translate admin strings'] = array(
    'name' => 'translate admin strings',
    'roles' => array(
      0 => 'administrator',
    ),
    'module' => 'i18n_string',
  );

  // Exported permission: translate content.
  $permissions['translate content'] = array(
    'name' => 'translate content',
    'roles' => array(
      0 => 'administrator',
      1 => 'editor',
      2 => 'editor-in-chief',
    ),
    'module' => 'translation',
  );

  // Exported permission: translate interface.
  $permissions['translate interface'] = array(
    'name' => 'translate interface',
    'roles' => array(
      0 => 'administrator',
      1 => 'editor',
      2 => 'editor-in-chief',
    ),
    'module' => 'locale',
  );

  // Exported permission: translate user-defined strings.
  $permissions['translate user-defined strings'] = array(
    'name' => 'translate user-defined strings',
    'roles' => array(
      0 => 'administrator',
      1 => 'editor',
      2 => 'editor-in-chief',
    ),
    'module' => 'i18n_string',
  );

  // Exported permission: view translation overview assigments.
  $permissions['view translation overview assigments'] = array(
    'name' => 'view translation overview assigments',
    'roles' => array(
      0 => 'administrator',
      1 => 'editor-in-chief',
    ),
    'module' => 'translation_overview',
  );

  return $permissions;
}