texte champs de l'attribut de valeur est de force ajoutée dans theme_textfield()
, la seule façon serait de passer outre cette fonction dans votre thème et supprimer ce morceau de code:
function YOURTHEME_textfield($variables) {
$element = $variables['element'];
$element['#attributes']['type'] = 'text';
// remove value form array
element_set_attributes($element, array('id', 'name', 'size', 'maxlength'));
_form_set_class($element, array('form-text'));
$extra = '';
if ($element['#autocomplete_path'] && !empty($element['#autocomplete_input'])) {
drupal_add_library('system', 'drupal.autocomplete');
$element['#attributes']['class'][] = 'form-autocomplete';
$attributes = array();
$attributes['type'] = 'hidden';
$attributes['id'] = $element['#autocomplete_input']['#id'];
$attributes['value'] = $element['#autocomplete_input']['#url_value'];
$attributes['disabled'] = 'disabled';
$attributes['class'][] = 'autocomplete';
$extra = '<input' . drupal_attributes($attributes) . ' />';
}
$output = '<input' . drupal_attributes($element['#attributes']) . ' />';
return $output . $extra;
}
Hope this aide votre ...
Nous avons besoin de voir votre code php personnalisé, pas votre code HTML. Nous ne pouvons pas aider sur le développement personnalisé sans voir votre code – Fky