function brightcove_field_browser_form in Brightcove Video Connect 7.5
Same name and namespace in other branches
- 7.7 brightcove.module \brightcove_field_browser_form()
- 7.2 brightcove_field/brightcove_field.module \brightcove_field_browser_form()
- 7.3 brightcove_field/brightcove_field.module \brightcove_field_browser_form()
- 7.4 brightcove_field/brightcove_field.module \brightcove_field_browser_form()
- 7.6 brightcove.module \brightcove_field_browser_form()
Browse form. Will return a form for one video item.
See also
2 string references to 'brightcove_field_browser_form'
- brightcove_field_forms in brightcove_field/
brightcove_field.module - Implementation of hook_forms().
- theme_brightcove_field_browse_item in brightcove_field/
theme.inc - Theme callback for Brightcove browse table item.
File
- brightcove_field/
brightcove_field.module, line 1164 - Brightcove field module provides a Content Construction Kit module to developers, allowing them to browse videos in their Brightcove Studio and upload them.
Code
function brightcove_field_browser_form($form, &$form_state, $item) {
$form['id'] = array(
'#type' => 'value',
'#default_value' => $item['brightcove_id'],
);
$form['title'] = array(
'#type' => 'value',
'#default_value' => $item['title'],
);
$form['text_title'] = array(
'#prefix' => '<div class="brightcove-title">',
'#suffix' => '</div>',
'#markup' => $item['title'],
);
$form['text_image'] = array(
'#prefix' => '<div class="brightcove-image">',
'#suffix' => '</div>',
'#markup' => $item['thumbnail'],
);
$form['submit'] = array(
'#type' => 'submit',
'#name' => 'submit-' . $item['brightcove_id'],
'#default_value' => t('Attach'),
'#ajax' => array(
'callback' => 'ajax_browse_dialog_close_callback',
),
);
return $form;
}