You are here

function i18n_perm in Internationalization 6

Same name and namespace in other branches
  1. 5.3 i18n.module \i18n_perm()
  2. 5 i18n.module \i18n_perm()
  3. 5.2 i18n.module \i18n_perm()

Implementation of hook_perm().

Permissions defined

  • administer all languages Disables language conditions for administration pages, so the user can view objects for all languages at the same time. This applies for: menu items, taxonomy
  • administer translations Will allow to add/remove existing nodes to/from translation sets.

File

./i18n.module, line 636
Internationalization (i18n) module.

Code

function i18n_perm() {
  return array(
    'administer all languages',
    'administer translations',
  );
}