function abjs_experience_delete_confirm_form_submit in A/B Test JS 7
Deletes experience and associated test-experiences.
File
- ./
abjs.admin.inc, line 956 - Admin forms to view/add/edit/delete tests, conditions, experiences.
Code
function abjs_experience_delete_confirm_form_submit($form, &$form_state) {
if ($form_state['values']['confirm']) {
db_delete('abjs_experience')
->condition('eid', $form_state['values']['eid'])
->execute();
db_delete('abjs_test_experience')
->condition('eid', $form_state['values']['eid'])
->execute();
drupal_set_message(t('Experience "%name" has been deleted.', array(
'%name' => $form_state['values']['name'],
)));
}
$form_state['redirect'] = 'admin/config/user-interface/abjs/experiences';
}