Closed (fixed)
Project:
Mailbuild
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 May 2008 at 03:30 UTC
Updated:
4 Sep 2008 at 07:24 UTC
Jump to comment: Most recent file
Comments
Comment #1
dragonwize commentedI am currently adding many new features to the D6 port and have custom fields on my list to add functionality for. Obviously though there are many way that this could be done. Which also makes it very hard to fit every use case as well. Maybe this is a good place to brainstorm on that.
Questions:
What is your Mailbuild custom field use case?
How would you like to see this feature implemented?
Comment #2
Chris Gillis commentedI would like the ability to add fields to the block form using hook_form_alter, and having the soap submit them in the background. Maybe I could reference the custom field keys in a hidden field. I have made a start:
Comment #3
Chris Gillis commentedMy params are now:
But I get the following: "There was an error subscribing to the list: NuSOAP library error"
I have tried key as: "Position", "fo-jltjd", and "mb.fo-jltjd" - nothing works.
Comment #4
Chris Gillis commentedFinally done it.
With this patch in place, I can add my custom fields using form alter. I just need to make sure I submit a list (comma seperated) of their keys in a field called "custom_fields".
Please check and let me know what you think...
Comment #5
dragonwize commentedThanks for putting this together. I plan to put out another version in the next 2 weeks. I will look this over and see if I can get it in.
Comment #6
jaydunford commentedHi thekeyper,
I'd also like to be able to use the Mailbuild module with custom fields. I have patched the module with the patch you have provided but I'm a little unsure how to proceed. I have done some reading around Drupal's FormAPI but have not actually used it as yet, this seems like the ideal time to have a go.
I understand that you are adding the extra (custom) fields to the Mailbuild module's form using form_alter() but beyond that I am slightly lost. I assume that you are putting your code inside a custom module rather than in your theme's template.php ?
Any chance of posting the code I'd need to put into a custom module (if that is the way to do it) in order to work with your patch?
Cheers
senorJ
Comment #7
Chris Gillis commentedHi senorJ!
You are on the right track. Create a new custom module and use form_alter. I have included the code I used below. (name of my custom module is 'bts')
The "custom_fields" element needs to have a comma-separated list of the keys of each of the extra fields you have added in. Let me know how you go.
-Chris
Comment #8
Chris Gillis commentedThis patch has been superseded by #303825: Major Upgrades.
Please direct all discussion there.