What is 'your_form_id'?
| Project: | Form Updater |
| Version: | 4.7.x-1.x-dev |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
I am using Drupal4.7, which I think has heaps of potential but leaves a few areas of concern. One area is the lack of file management within the interface, which is where I would prefer to perform it if possible. While I can attach files to documents and delete the files when I delete the document, the deletion of files or replacement of files without deleting the document does not seem possible to me at this stage.
With this in mind I loaded the DiskNode module, which is stated to be buggy but possible to use on 4.7, but in reality is not ready for 4.7 and should not be in the downloads for 4.7 modules.
I found the Form Update module and thought I would give it a try to see if it sorted out the problems with the DiskNode module. Everything seems to go Ok, but I get the output below:-
Drupal 4.6:
form($form2, 'POST');
Drupal 4.7:
$form['#method'] = 'POST';
$output = drupal_get_form('your_form_id', $form);
Replace your_form_id with an appropriate id.Unfortunately I am not a programmer as such, so I am unsure if this is a reference to a node/x entry or if it is a reference to some .xml or .htm file that I need to format to hold these outputs, or something else?
I also read a reference to a change in how $output is handled in 4.7, but I am not sure what it all means in this situation, if anything.
Your help is appreciated.
| Attachment | Size |
|---|---|
| disknode.JPG | 33.75 KB |

#1
From drupaldocs.org:
drupal_get_form($form_id, &$form, $callback = NULL)$form_id A unique string identifying the form. Allows each form to be themed.There you go: you need to replace your_form_id with a unique string: eg disknode_this_and_that_form.
An issue for disknode's 4.7 compatability has already been opened: http://drupal.org/node/45813 .Right now the module only works with 4.6 and as such shouldn't be tagged 4.7