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.

Comments

aaron’s picture

Assigned: Unassigned » aaron

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

aaron’s picture

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.

aaron’s picture

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.

damienmckenna’s picture

Awesome, thanks Aaron!

Status: Fixed » Closed (fixed)

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