Mercurial > defr > drupal > core
comparison includes/form.inc @ 19:3edae6ecd6c6 6.9
Drupal 6.9
author | Franck Deroche <franck@defr.org> |
---|---|
date | Thu, 15 Jan 2009 10:15:56 +0100 |
parents | 4347c45bb494 |
children |
comparison
equal
deleted
inserted
replaced
18:f5131a9cd9e5 | 19:3edae6ecd6c6 |
---|---|
1 <?php | 1 <?php |
2 // $Id: form.inc,v 1.265.2.16 2008/11/22 13:03:19 dries Exp $ | 2 // $Id: form.inc,v 1.265.2.17 2009/01/12 16:07:23 goba Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * @defgroup forms Form builder functions | 5 * @defgroup forms Form builder functions |
6 * @{ | 6 * @{ |
7 * Functions that build an abstract representation of a HTML form. | 7 * Functions that build an abstract representation of a HTML form. |
970 } | 970 } |
971 if (!isset($form['#id'])) { | 971 if (!isset($form['#id'])) { |
972 $form['#id'] = form_clean_id('edit-'. implode('-', $form['#parents'])); | 972 $form['#id'] = form_clean_id('edit-'. implode('-', $form['#parents'])); |
973 } | 973 } |
974 | 974 |
975 unset($edit); | |
976 if (!empty($form['#disabled'])) { | 975 if (!empty($form['#disabled'])) { |
977 $form['#attributes']['disabled'] = 'disabled'; | 976 $form['#attributes']['disabled'] = 'disabled'; |
978 } | 977 } |
979 | 978 |
980 if (!isset($form['#value']) && !array_key_exists('#value', $form)) { | 979 if (!isset($form['#value']) && !array_key_exists('#value', $form)) { |