The module has an existing command to add an indexed array to a new node. However, it would be extremely useful to be able to add an associative array. My case comes from interaction with the OG module, where a new node has to have the group node as a key, not a value, when you create the node. (The OG module converts the group keys in og_groups to values as part of the creation process. This is probably the cause of the various discussion/support requests saying that the command og_groups: [gid] doesn't work.)
Basically, it would be good to have a command that looks like this (if your gid was 206):
og_groups: [206 => 206]
I'm sure there are other uses, but this is probably one of the most common.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | mailhandler-307167-2.patch | 1.41 KB | lonelyrobot |
Comments
Comment #1
moshe weitzman commentedSounds reasonable to me. Patches welcome.
Comment #2
lonelyrobot commentedFollows the syntax suggested here: http://drupal.org/node/74361#comment-427694
Example of a command that could use this (adds incoming mail to groups specified):
Comment #3
Ian Ward commentedApplied this for 6.1 and 6.2. Thanks for the patch.