I'm using Brightcove Video Connect 7.x-6.0-beta2 module and I want to add field in my custom module.

I was tried with brightcove, brightcove_video and brightcove_field types and it is not working.

Example of my try:

  $form['something_page_settings']['something_media']['my_module_bri_file'] = array(
    '#title' => t("Brightcove"),
    '#type' => 'brightcove_field',
    '#default_value' => variable_get('my_module_bri_file'),

Can someone help me to add this field?

  • What do you mean by "add field" (are you trying to add a field to an entity? Trying to use a field API field in a custom form? Something else?)
    – Clive
    Commented Sep 2, 2015 at 13:49
  • To use field API in custom form...I updated my qustion with example.
    – mixerowsky
    Commented Sep 2, 2015 at 13:54
  • Gotcha - it's not easy (it was never designed to be able to happen), but it's possible. The duplicate has an exhaustive list of ways to accomplish it (this answer worked best for me IIRC)
    – Clive
    Commented Sep 2, 2015 at 13:55


Browse other questions tagged or ask your own question.