You are here

function message_ui_instance_delete_submit in Message UI 7

Deleting the sub theme submit handler.

File

./message_ui.module, line 824
Main file for the message UI module.

Code

function message_ui_instance_delete_submit($form, &$form_state) {
  if ($form_state['clicked_button']['#type']) {
    $form_state['#entity']
      ->delete();
    $form_state['redirect'] = 'admin/content/message';
    drupal_set_message(t('The message instance @type deleted successfully', array(
      '@type' => $form_state['#entity']->type,
    )));
  }
}