Drupal - Fieldset Menu always expanded and different max length of menu title field

/ Published in: PHP
Save to your folder(s)

Copy this code and paste it in your HTML
  1. function phptemplate_node_form($form) {
  2. $form['menu']['#collapsed'] = false;
  3. $form['menu']['link_title']['#maxlength'] = 300;
  5. return drupal_render($form);
  6. }

URL: http://stackoverflow.com/questions/2840588/drupal-how-to-set-collapsed-property-for-edit-content-fields

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.