You are here

function brightcove_forms in Brightcove Video Connect 7.6

Same name and namespace in other branches
  1. 7.7 brightcove.module \brightcove_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.module, line 1454
Brightcove module is an integration layer between any modules using Brightcove API. It makes all necessary checks for the API and makes settings available to the user.

Code

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