DrupalCustom

formelement

Feb 13th, 2012
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. <? php
  2. $form['status_list'] = array(
  3.     '#type' => 'select',
  4.     '#title' => t('Freeway Project Statuses'),
  5.     '#options' => array(
  6.       0 => t('-Select Status-'),
  7.       1 => t('Draft'),
  8.       2 => t('NotSpecified'),
  9.       3 => t('Quote'),
  10.       4 => t('Forecasted'),
  11.       5 => t('InEvaluation'),
  12.       6 => t('Cancelled'),
  13.       7 => t('Booked'),
  14.       8 => t('InProduction'),
  15.       9 => t('Completed'),
  16.       10 => t('Closed'),
  17.     ),
  18.     '#default_value' => array('0' => 'Select Status'),
  19.     '#weight' => 0,
  20.   );
Advertisement
Add Comment
Please, Sign In to add comment