You are here

function lingotek_update_7202 in Lingotek Translation 7.2

Same name and namespace in other branches
  1. 7.3 lingotek.install \lingotek_update_7202()

Ensure the Administrator role is granted newly-introduced permissions.

File

./lingotek.install, line 243
Installation for Lingotek Community Translation Module.

Code

function lingotek_update_7202(&$sandbox) {
  if ($rid = variable_get('user_admin_role', 0)) {
    $new_permisions = array(
      'url_alias_translation',
      'access lingotek utilities',
      'access per-item lingotek project selection',
      'access per-item lingotek vault selection',
    );
    user_role_grant_permissions($rid, $new_permisions);
    return t('Granted new Lingotek permissions to the administrative security role.');
  }
}