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.

CommentFileSizeAuthor
#2 mailhandler-307167-2.patch1.41 KBlonelyrobot

Comments

moshe weitzman’s picture

Sounds reasonable to me. Patches welcome.

lonelyrobot’s picture

Version: 5.x-1.3 » 6.x-1.8
Status: Active » Needs review
StatusFileSize
new1.41 KB

Follows 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):

og_groups: [1:1,2:2]
Ian Ward’s picture

Status: Needs review » Fixed

Applied this for 6.1 and 6.2. Thanks for the patch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.