/[drupal]/contributions/modules/ahah_helper/ahah_helper_demo.module
ViewVC logotype

Diff of /contributions/modules/ahah_helper/ahah_helper_demo.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Fri Aug 29 18:58:21 2008 UTC revision 1.2, Wed Nov 19 16:25:29 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: ahah_helper_demo.module,v 1.1 2008/08/29 18:58:21 wimleers Exp $
3    
4    
5  //----------------------------------------------------------------------------  //----------------------------------------------------------------------------
# Line 55  function ahah_helper_demo_form($form_sta Line 55  function ahah_helper_demo_form($form_sta
55      ),      ),
56    );    );
57    $form['billing_info']['update_usage'] = array(    $form['billing_info']['update_usage'] = array(
58      '#type' => 'submit',      '#type' => 'submit',
59      '#value' => t('Update usage'),      '#value' => t('Update usage'),
60      // Note that we can simply use the generic submit callback provided by the      // Note that we can simply use the generic submit callback provided by the
61      // ahah_helper module here!      // ahah_helper module here!
# Line 131  function ahah_helper_demo_form($form_sta Line 131  function ahah_helper_demo_form($form_sta
131      '#maxlength' => 255,      '#maxlength' => 255,
132      '#default_value' => $form_state['values']['billing_info']['country'],      '#default_value' => $form_state['values']['billing_info']['country'],
133    );    );
134    
135    $form['save'] = array(    $form['save'] = array(
136      '#type' => 'submit',      '#type' => 'submit',
137      '#value' => t('Save'),      '#value' => t('Save'),
138    );    );
139    
140    
141    return $form;    return $form;
142  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2