You are here

function media_watermark_delete_form_submit in Media watermark 7

Form submission handler for media_watermark_delete_form().

File

includes/media_watermark_delete.admin.inc, line 33
Media watermark module integration.

Code

function media_watermark_delete_form_submit($form, &$form_state) {
  db_delete('media_watermark')
    ->condition('wid', $form_state['watermark_arg'])
    ->execute();
  drupal_set_message(t('Watermark has been deleted.'));
  $form_state['redirect'] = 'admin/config/media/watermark';
}