function ctools_ajax_sample_configure_lizard

Wizard form to configure your lizard.

1 string reference to 'ctools_ajax_sample_configure_lizard'
ctools_ajax_sample_animals in ctools_ajax_sample/ctools_ajax_sample.module
Get a list of our animals and associated forms.

File

ctools_ajax_sample/ctools_ajax_sample.module, line 625

Code

function ctools_ajax_sample_configure_lizard($form, &$form_state) {
    $form_state['title'] = t('Configure lizard');
    $form['name'] = array(
        '#type' => 'textfield',
        '#title' => t('Name your lizard'),
        '#default_value' => $form_state['object']->name,
        '#required' => TRUE,
    );
    $form['lizard'] = array(
        '#title' => t('Venomous'),
        '#type' => 'checkbox',
        '#default_value' => !empty($form_state['object']->lizard),
    );
    return $form;
}