You are here

function lingotek_update_7213 in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.7 lingotek.install \lingotek_update_7213()
  2. 7.3 lingotek.install \lingotek_update_7213()
  3. 7.4 lingotek.install \lingotek_update_7213()
  4. 7.6 lingotek.install \lingotek_update_7213()

Ensure the Administrator role is granted correct permissions.

File

./lingotek.install, line 478

Code

function lingotek_update_7213(&$sandbox) {
  $rid = variable_get('user_admin_role', 0);
  if ($rid) {
    $permissions = array(
      'administer lingotek',
      'manage projects',
      'translation',
      'use lingotek developer tools',
    );
    user_role_grant_permissions($rid, $permissions);
    return t('Granted Lingotek permissions to the administrative security role.');
  }
}