Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function my_form(){
- $form['foo'] = array(
- '#type' => 'textfield',
- );
- $form['actions'] = array(
- '#type' => 'actions',
- '#value' => 'submit',
- );
- $form['actions']['submit'] = array(
- '#type' => 'submit',
- '#value' => 'Submit',
- '#submit' => array('choose_winter_instruction_form_submit'),
- );
- return($form);
- }
- function choose_winter_instruction_form_submit($form, &$form_state){
- drupal_goto('/');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement