This adds support for the video_embed_field module (hopefully!)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

Tobias Xy’s picture

Status: Needs review » Needs work

You also have to add an entry to _field_conditional_state_get_field_states (which states can be applied to the video field) and _field_conditional_state_get_trigger_states (which states can be triggered by the video field). :-)

Anonymous’s picture

Thanks for checking it out, Tobias. It's basically a textfield (it accepts a URL for a video embed and an optional description), so currently it's using the default behaviour for both functions. Should I add a case for this field?

BTW love this module ^^

Tobias Xy’s picture

The default behavior is "no supported states", so for each supported widget must exist an explicit statement within these two functions, what states are supported. (When applying your patch you won't be able to create states involving a video embed field).

I'm glad that you like it and that you're contributing to it!

Tobias Xy’s picture

Status: Needs work » Needs review
FileSize
1.43 KB
Tobias Xy’s picture

IWasBornToWin’s picture

How about image field? Video field? Or will file field work?

Tobias Xy’s picture

You can see the already supported fields on the front page. If you want to have support for a field not listed there, create a new feature request for it (unless there isn't already an issue for the widget).

  • Commit ab8b913 on 7.x-2.x by Tobias Xy:
    Issue #2229797 by JamesLefrère, Tobias Xy: Add video_embed_field support
    
Tobias Xy’s picture

Status: Needs review » Fixed

Done.
But: The description field of video_embed_field isn't affected by enabled/required states. We have to fix #2228243: Allow multiple form elements as state target first and I don't know if including the description field into these states makes sense anyway.

Status: Fixed » Closed (fixed)

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