By wqr786 on
When I create a content "Page" eveything goes fine, and there are various fields that are collapsed by default and when clicked, they expand. But I am interested in one field, such as "url Path" field to be expanded by default. Any idea?
Thanks
Waqar
Comments
use hook_form_alter()
You can use hook_form_alter() and change #collapsed to true
in which module?
Thanks. I'd like to ask where, in which module, I'll have to alter the coding of collapsed to FALSE?
Thanks
Waqar
http://api.drupal.org/api/function/hook_form_alter/5
Create a module call "yoursite_general" of you could put in this function in any of your module just change "justsite" to your module name
and put in this function
Same Issue Here
I have been unable to find how to set the URL path settings field of the Pathauto module to display collapsed by default. I am not advanced enough to understand the suggestions of the above comments.
Anyone else have any suggestions?
rgrep baby!
Inside of your pathauto folder (which you should have put somewhere like /sites/all/modules/pathauto) there's a file called pathauto.module.
Line 290 is:
Change FALSE to be TRUE...
Above Poster Has It
The post above has a solid answer.
When you want to customize a Drupal site, it's best to create a unique module for your site and make the changes there. Drupal will pick them up and override code elsewhere. If you hack the changes directly into the pathauto module, you will lose them with the next module update.
P.S. Necromantic Might.