Advertisement
DrupalCustom

frh

Mar 29th, 2012
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.21 KB | None | 0 0
  1.   $form['title'] = array(
  2.     '#type' => 'textfield',
  3.     '#title' => t('Project Description'),
  4.     '#size' => 60,
  5.     '#maxlength' => 30,
  6.     '#required' => TRUE,
  7.   );
  8.  
  9.   $form['custRef'] = array(
  10.     '#type' => 'textfield',
  11.     '#title' => t('Customer Reference'),
  12.     '#default_value' => $defaultRef,
  13.     '#size' => 60,
  14.     '#maxlength' => 30,
  15.     '#required' => FALSE,
  16.   );
  17.  
  18.   $form['poRef'] = array(
  19.     '#type' => 'textfield',
  20.     '#title' => t('PO Reference'),
  21.     '#size' => 60,
  22.     '#maxlength' => 30,
  23.     '#required' => FALSE,
  24.   );
  25.  
  26.  
  27.   $form['splinst'] = array(
  28.     '#type' => 'textarea',
  29.     '#title' => t('Special Instructions'),
  30.     '#size' => 60,
  31.     '#maxlength' => 100,
  32.     '#required' => FALSE,
  33.   );
  34.  
  35.  
  36. $form['enddate'] = array(
  37.   '#type' => 'date_popup',
  38.   '#title' => t('Delivery Date'),
  39.   '#size' => 60,
  40.   '#maxlength' => 128,
  41.   '#required' => TRUE,
  42.   '#date_format' => 'm/d/Y'
  43.   // With this format you'll get a date popup box AND a time widget. Obviously you can change this to whatever you need.
  44. );
  45.  
  46.  
  47.  
  48.   $form['create_project_btn'] = array(
  49.     '#type' => 'submit',
  50.     '#value' => 'Create Freeway Project',
  51.     '#weight' => 10,
  52.   );
  53.  
  54.  
  55.   return $form;
  56.  
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement