You are here

function makemeeting_delete_answer_submit in Make Meeting Scheduler 7.2

Form callback: confirm answer deletion

File

./makemeeting.pages.inc, line 25

Code

function makemeeting_delete_answer_submit($form, &$form_state) {
  $answer = $form['#answer'];
  db_delete('makemeeting_answers')
    ->condition('answer_id', $answer->answer_id)
    ->execute();
  _makemeeting_clear_related_entity_cache($answer->entity_type, $answer->entity_id);
}