You are here

function domain_update_7001 in Domain Access 7.2

Same name and namespace in other branches
  1. 7.3 domain.install \domain_update_7001()

Change the edit and delete permissions.

File

./domain.install, line 124
Install file.

Code

function domain_update_7001() {
  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.');
}