You are here

function animate_any_delete_animate_block_submit in Animate Any 7

Implements Delete Animate Submit.

File

./animate_any.module, line 428
Add CSS3 cross-browser animation to any Drupal site.

Code

function animate_any_delete_animate_block_submit($form, &$form_state) {
  $animate_aid = $form_state['values']['animate_aid'];
  if (is_numeric($animate_aid)) {
    $delete = db_delete('animate_any')
      ->condition('aid', $animate_aid)
      ->execute();
    if ($delete) {
      drupal_set_message(t('Record deleted successfully.'));
    }
    drupal_goto('admin/config/animate_any/list');
  }
}