[support] trying to get the attachments div to be permanently open
Earl Miles
merlin at logrus.com
Mon May 24 01:06:33 UTC 2010
On 5/23/2010 1:54 PM, Neil Coghlan wrote:
> I was looking through the thread here: http://drupal.org/node/227339
>
> the problem I'm having is that when I add this to my theme's template.php:
>
> // Open the file attachments collapsible block in a full state
> function phptemplate_node_form($form) {
>
> $form['attachments']['#collapsed'] = FALSE;
> return drupal_render($form);
> }
>
> the attachments div is open BUT the main submit and preview buttons
> disappear. Any reason why that function should be interfering with the
> node form's submit and preview buttons?
>
> Neil
>
Because you're overriding theme_node_form() which does a lot of stuff.
You should probably do this via hook_form_alter, not via theme.
More information about the support
mailing list