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

aaron - October 14, 2009 - 17:55
Assigned to:Anonymous» aaron

should be easy to implement this: something like hook_emfield_data_alter(&$data). i'll grab this in the next day or two.

#2

aaron - October 20, 2009 - 15:45
Status:active» needs work

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

aaron - October 20, 2009 - 17:13
Status:needs work» fixed

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

DamienMcKenna - October 20, 2009 - 17:23

Awesome, thanks Aaron!

#5

System Message - November 3, 2009 - 17:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.