The current format of the extracted terms is an array with the key as the term id and the value as the name of the term.
array(453 => 'foo', 23 => 'bar');
This makes is impossible to alter this array to add metadata. The format should be changed to look like this:
array(
0 => array(
'name' => 'foo',
'extracted_tid' => 453,
),
1 => array(
'name' => 'bar',
'extracted_tid' => 23,
),
);
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 878018_1.patch | 757 bytes | Will White |
Comments
Comment #1
Will White commentedThis patch changes the format and introduces an alter that will allow other modules to decorate the extracted term array with metadata.
Comment #2
David Goode commentedNot necessary for anything at present; no longer used by MN for geodata, that is taken care of by taxonomy. Probably we should use the standard term format if we do this; ie call it "tid" instead of "extracted_tid" and so forth. Needs thought and a use case...