function ctools_ajax_sample_start_submit

They have selected a sheep. Set it.

File

ctools_ajax_sample/ctools_ajax_sample.module, line 571

Code

function ctools_ajax_sample_start_submit(&$form, &$form_state) {
    $form_state['object']->type = $form_state['values']['type'];
    // Override where to go next based on the animal selected.
    $form_state['clicked_button']['#next'] = $form_state['values']['type'];
}