Guest User

Untitled

a guest
Feb 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. $form = array();
  2. $form['title'] = array(
  3. '#type' => 'textfield',
  4. '#title' => t('Space name'),
  5. '#attributes' => array('class' => 'dw-form-item'),
  6. '#required' => TRUE,
  7. '#description' => t('Enter the name of the space.'),
  8. '#weight' => -19,
  9. );
  10. $form['descr'] = array(
  11. '#type' => 'item',
  12. '#tree' => TRUE,
  13. );
  14. $form['descr']['body'] = array(
  15. '#type' => 'textarea',
  16. //'#maxlength' => ...,
  17. '#title' => t('Space description'),
  18. '#description' => t('That content will be shown to all users when entering the space'),
  19. '#default_value' => '',
  20. '#rows' => 10,
  21. );
  22.  
  23. //filter_form();
  24. $form['descr']['filter'] = filter_form();
Add Comment
Please, Sign In to add comment