This question already has an answer here:

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?

marked as duplicate by Clive Sep 2 '15 at 13:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 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 Sep 2 '15 at 13:49
  • To use field API in custom form...I updated my qustion with example. – mixerowsky Sep 2 '15 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 Sep 2 '15 at 13:55

Browse other questions tagged or ask your own question.