You are here

function commerce_order_update_7104 in Commerce Core 7

Update permission names for order entity management.

File

modules/order/commerce_order.install, line 379

Code

function commerce_order_update_7104() {

  // Load utility functions.
  module_load_install('commerce');
  $map = array(
    'administer orders' => 'administer commerce_order entities',
    'access orders' => 'view any commerce_order entity',
    'create orders' => 'create commerce_order entities',
    'edit any order' => 'edit any commerce_order entity',
    'edit own orders' => 'edit own commerce_order entities',
    'view own orders' => 'view own commerce_order entities',
  );
  commerce_update_rename_permissions($map);
  return t('Role and custom View permissions updated for order entity management. Access checks in modules and permissions on default Views must be updated manually.');
}