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

Multiple file uploads

Hello,

I have a form in a module of mine which contains mutliple file fields for uploading images. In the HTML they have names of the form edit['images'][0...n], where n is some number I choose. On insert I need each of these to be processed by the image module. This page describes how to do this for one image field, but I'm not sure how to extend this to multiple fields. Any help?

Thanks.

adding custom profile fields to main category on user profile page (my account page)

How do I add profile fields to the main account settings page under my account..edit? I am adding a few admin fields that only I adjust for users and I want to add the fields to the main account settings page. Right now if I add a category basically all the user sees is a blank page when they click on that tab which is stupid bc I don't want them to see anything.

Form API How to add fields to a core form

My new 5.0 module needs to add text and a field to a core form (from user.module). Could someone please point me to some examples of this being done?

The form API docs say that it is possible to alter core forms using a hook, but I have been unable to find any examples or explanation.

Your assistance will be appreciated.

Thanks

David

Examples of Import/Export API use

Can anybody point me to some modules that use the Import/Export API?

I need to build a simple[?] module, that allows a user to upload a CSV/XLS file, and the module should drop some existing data in the DB, and replace this with the data in the spreadsheet.

Ideally there is a module that does something similar that I can look at the code and see how it goes.

I'm reading through the Import/Export API documentation at the moment, but a good example of the API in use could help me get my head around it.

Any ideas?

Regards
Alan

Huge file cache in module folder...

I was wondering why /admin/build/modules took so long to load on one of my pages, and then I realized it is because I have a really huge folder (with hundreds of subfolders) in one of the module folders.

Since /admin/build/modules looks for new modules recursively in all subfolders, the page takes several minutes to load.

Can you recommend anything to prevent Drupal from looking into this folder, but still have the files easily available to be read by the module?

Event Calendar parse error

Would anyone know how to correct this parse error? My drupal version is 4.7x and the event cal seems to be 4.6x, however I dowloaded the most recent version just yesterday. Thanks. Also, if there is another calendar more suitable that allows visitors to sign-up for events I would appreciate the link.

Parse error: parse error, unexpected '<' in /home2/flying/public_html/a_signup/modules/event/contrib/event_views/event_views.module on line 3

Pages

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