function domain_update_7001 in Domain Access 7.3
Same name and namespace in other branches
- 7.2 domain.install \domain_update_7001()
Change the edit and delete permissions.
File
- ./
domain.install, line 189 - Install file.
Code
function domain_update_7001(&$sandbox) {
db_update('role_permission')
->condition('permission', 'edit domain nodes')
->fields(array(
'permission' => 'edit domain content',
))
->execute();
db_update('role_permission')
->condition('permission', 'delete domain nodes')
->fields(array(
'permission' => 'delete domain content',
))
->execute();
return t('Updated Domain Access permission names.');
}