File Metadata

arthurf - October 23, 2009 - 23:05

This is a forthcoming module which provides meta data storage for formaters for the Media module. This is intended for simple data storage (though maybe expanded in the future). For formaters which require complex data storage they will need to implement their own storage.

The intent of this module is to move meta data storage for files away from the file widget and allow for formaters to determine what kinds of data are associated with which files. This allows the file widget to be concerned only with acquiring and storing a file and formaters to handle data storage and display concerns.

Data is stored to $file->metadata in a keyed array based on the module which implements the storage and a unique identifier to that module (so that modules can implement more than one data store) and key value pairs. Data is appended to $file->metadata as an array by module, identifier, key => value

Releases



 
 

Drupal is a registered trademark of Dries Buytaert.