function brightcove_cck_browser_form in Brightcove Video Connect 6
Same name and namespace in other branches
- 6.2 brightcove_cck/brightcove_cck.module \brightcove_cck_browser_form()
Browse form. Will return a form for one video item.
See also
2 string references to 'brightcove_cck_browser_form'
- brightcove_cck_forms in brightcove_cck/
brightcove_cck.module - Implementation of hook_forms().
- theme_brightcove_cck_browse_item in brightcove_cck/
theme.inc - Theme callback for Brightcove browse table item.
File
- brightcove_cck/
brightcove_cck.module, line 696 - 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_browser_form(&$form_state, $item) {
$form['id'] = array(
'#type' => 'value',
'#value' => $item['video_id'],
);
$form['title'] = array(
'#type' => 'value',
'#value' => $item['title'],
);
$form['text_title'] = array(
'#type' => 'item',
'#value' => $item['title'],
);
$form['text_image'] = array(
'#type' => 'item',
'#value' => $item['thumbnail'],
);
$form['submit'] = array(
'#type' => 'submit',
'#name' => 'submit-' . $item['video_id'],
'#value' => t('Attach'),
);
$form['#submit'] = array(
"brightcove_cck_browser_form_submit",
);
return $form;
}