You are here

function contribute_form in Contribute 6

@file Lets users contribute to projects

1 string reference to 'contribute_form'
contribute_nodeapi in ./contribute.module

File

./contribute.module, line 6
Lets users contribute to projects

Code

function contribute_form($form_state) {
  $form['transfer'] = array(
    '#type' => 'fieldset',
    '#title' => t('contribute to project'),
    '#tree' => TRUE,
  );
  $form['transfer']['amount'] = array(
    '#type' => 'textfield',
    '#title' => t('Amount'),
    '#size' => 30,
    '#default_value' => 0,
    '#maxlength' => 64,
    '#description' => t('Enter the amount to contribute to project'),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Load'),
  );
  return $form;
}