contact_storage.post_update.php in Contact Storage 8
Post update functions for Contact Storage.
File
contact_storage.post_update.phpView source
<?php
/**
* @file
* Post update functions for Contact Storage.
*/
use Drupal\system\Entity\Action;
/**
* Renames the "message_delete" action to avoid Message module conflicts.
*/
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();
}
}
Functions
Name | Description |
---|---|
contact_storage_post_update_rename_message_delete_action | Renames the "message_delete" action to avoid Message module conflicts. |