function message_ui_instance_delete in Message UI 7
Deleting the message.
1 string reference to 'message_ui_instance_delete'
- message_ui_menu in ./
message_ui.module - Implements hook_menu().
File
- ./
message_ui.module, line 807 - Main file for the message UI module.
Code
function message_ui_instance_delete($form, &$form_state, Message $message) {
// When the bundle is exported - display a message to the user.
$form_state['#entity'] = $message;
// Always provide entity id in the same form key as in the entity edit form.
return confirm_form($form, t('Are you sure you want to delete the @type message instance?', array(
'@type' => $message->type,
)), 'admin/content/message', t('Are you sure you want to delete the message instance? This action cannot be undone.'), t('Delete'), t('Cancel'));
}