Advertisement
DanielHolm

Untitled

Jun 21st, 2011
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1. function function2() {
  2.     return array(
  3.         form => drupal_get_form('mymodule_form'),
  4.         html => mymodule_html(),
  5.     );
  6. }
  7.  
  8. function mymodule_form() {
  9.     $form['offert'] = array(
  10.  
  11.         '#title' => t('Legend'),
  12.  
  13.         '#type' => 'fieldset'
  14.  
  15.     );
  16.     $form['offert']['name'] = array(
  17.  
  18.         '#type' => 'textfield',
  19.  
  20.         '#title' => t('Name'),
  21.  
  22.         '#default_value' => t('Your name'),
  23.  
  24.         '#size' => 60,
  25.  
  26.         '#maxlength' => 64
  27.  
  28.     );
  29.     $form['offert']['submit'] = array(
  30.  
  31.         '#type' => 'submit',
  32.  
  33.         '#value' => t('Submit')
  34.  
  35.     );
  36.  
  37.  
  38.     return $form;
  39.  
  40. }
  41.  
  42. function mymodule_html() {
  43.     $html = "Some HTML";
  44.     return $html;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement