Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $form['title'] = array(
- '#type' => 'textfield',
- '#title' => t('Project Description'),
- '#size' => 60,
- '#maxlength' => 30,
- '#required' => TRUE,
- );
- $form['custRef'] = array(
- '#type' => 'textfield',
- '#title' => t('Customer Reference'),
- '#default_value' => $defaultRef,
- '#size' => 60,
- '#maxlength' => 30,
- '#required' => FALSE,
- );
- $form['poRef'] = array(
- '#type' => 'textfield',
- '#title' => t('PO Reference'),
- '#size' => 60,
- '#maxlength' => 30,
- '#required' => FALSE,
- );
- $form['splinst'] = array(
- '#type' => 'textarea',
- '#title' => t('Special Instructions'),
- '#size' => 60,
- '#maxlength' => 100,
- '#required' => FALSE,
- );
- $form['enddate'] = array(
- '#type' => 'date_popup',
- '#title' => t('Delivery Date'),
- '#size' => 60,
- '#maxlength' => 128,
- '#required' => TRUE,
- '#date_format' => 'm/d/Y'
- // With this format you'll get a date popup box AND a time widget. Obviously you can change this to whatever you need.
- );
- $form['create_project_btn'] = array(
- '#type' => 'submit',
- '#value' => 'Create Freeway Project',
- '#weight' => 10,
- );
- return $form;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement