and classes around form elements. All form elements will have...">

Remove class = "form element" from Drupal forms


Drupal automatically adds <div> and classes around form elements. All form elements will have an attribute class = "form-item". How to override this default behavior?

+3
source share
2 answers

If you insist on changing it, it is added to the theme_form_element function . You can override it by copying this function to the theme theme.php file and renaming it THEMENAME_form_element (replacing your theme name with "THEMENAME") or phptemplate_form_element and deleting the part that adds the class.

+3
source

, , :
, ( zen, ): Drupal 6 Zen " ", . .

+1

Source: https://habr.com/ru/post/1792430/


All Articles