function lingotek_update_7213 in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.7 lingotek.install \lingotek_update_7213()
- 7.3 lingotek.install \lingotek_update_7213()
- 7.5 lingotek.install \lingotek_update_7213()
- 7.6 lingotek.install \lingotek_update_7213()
Ensure the Administrator role is granted correct permissions.
File
- ./
lingotek.install, line 447 - Installation for Lingotek Community Translation Module.
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.');
}
}