function lingotek_update_7202 in Lingotek Translation 7.3
Same name and namespace in other branches
- 7.2 lingotek.install \lingotek_update_7202()
Ensure the Administrator role is granted newly-introduced permissions.
File
- ./
lingotek.install, line 262 - Installation for Lingotek Community Translation Module.
Code
function lingotek_update_7202(&$sandbox) {
if ($rid = variable_get('user_admin_role', 0)) {
$new_permisions = array(
'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.');
}
}