You are here

function log_delete_form_submit in Log entity 7

Delete form submit handler.

Parameters

array $form: The form array.

array $form_state: The form state array.

File

./log.pages.inc, line 297
Log pages.

Code

function log_delete_form_submit(array $form, array &$form_state) {
  $log = $form_state['values']['log'];
  log_delete($log);
  drupal_set_message(t('%title was deleted.', array(
    '%title' => entity_label('log', $log),
  )));
  $form_state['redirect'] = '<front>';
}