You are here

function commerce_file_update_7105 in Commerce File 7

Update field type permission from 'administer commerce_file' to 'administer commerce_file field type'

File

./commerce_file.install, line 341
Install, update and uninstall functions this module.

Code

function commerce_file_update_7105(&$sandbox) {

  // Load utility functions.
  module_load_install('commerce');
  $map = array(
    'administer commerce_file' => 'administer commerce_file field type',
  );
  commerce_update_rename_permissions($map);
  return t('Role and custom View permissions updated for Commerce File field type admin. Access checks in modules and permissions on default Views must be updated manually.');
}