You are here

function brightcove_field_forms in Brightcove Video Connect 7.2

Same name and namespace in other branches
  1. 7.3 brightcove_field/brightcove_field.module \brightcove_field_forms()
  2. 7.4 brightcove_field/brightcove_field.module \brightcove_field_forms()
  3. 7.5 brightcove_field/brightcove_field.module \brightcove_field_forms()

Implementation of hook_forms().

Needed to help Drupal determine which form to render - every video item in the browser is a separate form.

File

brightcove_field/brightcove_field.module, line 1094
Brightcove field module provides a Content Construction Kit module to developers, allowing them to browse videos in their Brightcove Studio and upload them.

Code

function brightcove_field_forms($form_id, $args) {
  $forms = array();
  if (strpos($form_id, "brightcove_field_browser_form") === 0) {
    $forms[$form_id] = array(
      'callback' => 'brightcove_field_browser_form',
    );
  }
  return $forms;
}