This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Users submitting content

Hi how do I let users submit content pages and it has to get admin approval before it gets published?

multipart forms - how to set a redirect/return url

Dear friends,

I am using a multipart form in Drupal 5.2 in a module. I have set the #multistep=true and #redirect=false. Everything works fine except for the last step when after submitting the data I need to redirect the user to another page I find that I am not able to make the hook_submit function to return any value.

I understand that this is because of setting #redirect to false. How to overcome this ?

Thanks

Karthik

Selective repopulation of form fields when validate fails

I have a field that I don't want to be repopulated with the posted data when validation fails.
I've tried using the form_set_value function but it doesn't work (I guess it only changes the form_values for the submit function?).
Is there a way to do this?

how to invoke comments with theme?

hi guys,

i want to invoke usernode comments to my custom profile template.

i used

<?php print module_invoke('comment', 'nodeapi', $node, 'update index'); ?>

but the output is only

title
body

without template

how to invoke with theme?

greets

Lausch

Repopulate the form with the posted values after submit fails

Scenario: I have a registration form with a lot of fields. I enter some values that pass validation, but in the submit function the registration fails (for example because an external DB refused to accept the registration).

Is there any way to have the form API fill the form values back from the posted values, like it does for failed validation?

Modules deleted but database table still there

After add-on modules deleted using ftp, I checked my database and found my deleted modules database table still there. Any best method to properly delete modules included database table?

Is it good practise to always install modules to www.domain.com/sites/all/modules or must install to www.domain.com/modules?

I am new to drupal, hope somebody guide me.

Thanks.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions