Allow modules to tap into the video 'data' field
DamienMcKenna - October 14, 2009 - 17:53
| Project: | Embedded Media Field |
| Version: | 6.x-1.x-dev |
| Component: | Embedded Video Field |
| Category: | feature request |
| Priority: | normal |
| Assigned: | aaron |
| Status: | closed |
Jump to:
Description
For occasions when you want to extend a video provider's configuration to allow per-node overrides, e.g. #562632: Allow the player ID to be overridden per node, it would be useful to be able to tap straight into the video record's "data" field rather than having to build a new data structure.

#1
should be easy to implement this: something like hook_emfield_data_alter(&$data). i'll grab this in the next day or two.
#2
I just committed this, then saw there was already a hook in place for altering the data. However, it's not as clearly named, so I think I'll keep it.
#3
ok, hook_emfield_data_alter(&$data) is now implemented. I've documented most of the hooks in a new hooks/emfield.php file as well.
#4
Awesome, thanks Aaron!
#5
Automatically closed -- issue fixed for 2 weeks with no activity.