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