php - Drupal: how to set collapsed property for edit-content fields -


What are the fields that will collapse and which content are not in the pages?

That means the tag has been removed menu settings expanded, authoring has been expanded ..

I want to reverse.
Thanks

Renewed : Classification Super-Selection Field (How can I mention this area ('Classification' is not working))

  & lt; Div class = "taxonomy-super-select-checkboxes" & gt; & Lt; Fieldset class = "Opening fell" gt; & Lt; Legend class = "fall-processed" & gt; & Lt; A href = "#" & gt; Tag & lt; / A & gt; & Lt; / Legend & gt; & Lt; Div class = "fieldet-wrapper" & gt; & Lt; Div id = "Edit-classification-tag-1-wrapper" category = "form-item" & gt; & Lt; Label = "edit-taxonomy-tags-1" & gt; Enter new tags: & lt; / Label & gt; & Lt; Input type = "text" class = "form-text form-autocomplete" value = "" size = "60" id = "editing-classification-tags -1" name = "classification [tag] [1]" maximum length = "1024" autocomplete = "off" & gt; & Lt; Div class = "description" & gt; A comma-separated list of words describing this content: Funny, Bungee Jump, "Company, Inc.". & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Input type = "hidden" disabled = "disabled" value = "http: // localhost / drupal / classification / autocomplete / 1" id = "edit-classification-tag-1-auto-complete" class = " Autocomplete-processed "& gt; & Lt; Div id = "edit-classification-1-20-wrapper" category = "form-item" & gt; & Lt; Label = "edit-taxonomy-1-20" class = "options" & gt; & Gt; Input type = "checkbox" class = "form-checkbox" value = "20" id = "edit-taxonomy-1- 20" name = "classification [1] [20]" & gt; Tag1 & lt; / Labels & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Fieldset & gt; & Lt; / Div & gt;  

Drupal has an interface for connectable fields. If this property is set to TRUE , then the field collapses, and vice versa. To change the default, do do not have the main files , but do it in one of the droplet ways and add it to your template.php :

< Pre> function phptemplate_node_form ($ form) {$ form ['taxonomy'] ['# collapsed'] = Wrong; $ Form ['menu'] ['# collapsed'] = true; $ Form ['writer'] ['# collapsed'] = true; // etc. For all areas you want to change the return drupal_render ($ form); }

After this, you need.


Comments