You are here

function abjs_ajax_remove_condition in A/B Test JS 7

Removes condition select fields to abjs_test_form.

1 string reference to 'abjs_ajax_remove_condition'
abjs_test_form in ./abjs.admin.inc
Generates a form for adding and editing tests.

File

./abjs.admin.inc, line 394
Admin forms to view/add/edit/delete tests, conditions, experiences.

Code

function abjs_ajax_remove_condition($form, &$form_state) {
  if ($form_state['num_conditions'] > 1) {
    $form_state['num_conditions']--;
  }
  $form_state['rebuild'] = TRUE;
}