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,
  ),
);

CommentFileSizeAuthor
#1 878018_1.patch757 bytesWill White

Comments

Will White’s picture

StatusFileSize
new757 bytes

This patch changes the format and introduces an alter that will allow other modules to decorate the extracted term array with metadata.

David Goode’s picture

Priority: Normal » Minor
Status: Needs work » Postponed

Not 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...