You are here

function contact_storage_post_update_rename_message_delete_action in Contact Storage 8

Renames the "message_delete" action to avoid Message module conflicts.

File

./contact_storage.post_update.php, line 13
Post update functions for Contact Storage.

Code

function contact_storage_post_update_rename_message_delete_action() {
  $action = Action::load('message_delete_action');
  if ($action) {
    $action
      ->set('id', 'contact_message_delete_action')
      ->setPlugin('entity:delete_action:contact_message');
    $action
      ->save();
  }
}