function brightcove_admin_embed_publish_form in Brightcove Video Connect 7.6
Same name and namespace in other branches
- 7.7 brightcove.player.inc \brightcove_admin_embed_publish_form()
Form callback for 'admin/config/media/brightcove/players/%/%/%/publish'.
_state
Parameters
array $form:
string $bcid:
string $player_id:
string $embed_id:
Return value
array
1 string reference to 'brightcove_admin_embed_publish_form'
- brightcove_admin_embed_preview in ./
brightcove.player.inc - Gets the preview embed code and displays the embed preview, and the publish form. Used to preview the child player before publishing it.
File
- ./
brightcove.player.inc, line 656
Code
function brightcove_admin_embed_publish_form(array $form, array &$form_state, $bcid, $player_id, $embed_id) {
$form['bcid'] = [
'#type' => 'value',
'#value' => $bcid,
];
$form['player_id'] = [
'#type' => 'value',
'#value' => $player_id,
];
$form['embed_id'] = [
'#type' => 'value',
'#value' => $embed_id,
];
$form['comment'] = [
'#type' => 'textfield',
'#title' => t('Comment (optional)'),
];
$form['publish'] = [
'#type' => 'submit',
'#value' => t('Publish'),
];
return $form;
}