function lingotek_update_7213 in Lingotek Translation 7.3
Same name and namespace in other branches
- 7.7 lingotek.install \lingotek_update_7213()
- 7.4 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 424 - 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',
'adjust auto-download node setting',
'translate url aliases',
'access lingotek utilities',
'access per-item lingotek project selection',
'access per-item lingotek vault selection',
);
user_role_grant_permissions($rid, $permissions);
return t('Granted Lingotek permissions to the administrative security role.');
}
}