You are here

function brightcove_cck_forms in Brightcove Video Connect 6

Same name and namespace in other branches
  1. 6.2 brightcove_cck/brightcove_cck.module \brightcove_cck_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_cck/brightcove_cck.module, line 739
Brightcove CCK module provides a Content Construction Kit module to developers, allowing them to browse videos in their Brightcove Studio and upload them.

Code

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