You are here

function brightcove_admin_player_publish_form in Brightcove Video Connect 7.7

Same name and namespace in other branches
  1. 7.6 brightcove.player.inc \brightcove_admin_player_publish_form()

Form callback for 'admin/config/media/brightcove/players/%/%/publish'.

_state

Parameters

array $form:

string $bcid:

string $player_id:

Return value

array

1 string reference to 'brightcove_admin_player_publish_form'
brightcove_menu in ./brightcove.module
Implements hook_menu().

File

./brightcove.player.inc, line 324

Code

function brightcove_admin_player_publish_form(array $form, array &$form_state, $bcid, $player_id) {
  $form['bcid'] = [
    '#type' => 'value',
    '#value' => $bcid,
  ];
  $form['player_id'] = [
    '#type' => 'value',
    '#value' => $player_id,
  ];
  $form['comment'] = [
    '#type' => 'textfield',
    '#title' => t('Comment (optional)'),
  ];
  $form['publish'] = [
    '#type' => 'submit',
    '#value' => t('Publish'),
  ];
  return $form;
}