function brightcove_field_create_form in Brightcove Video Connect 7.4
Same name and namespace in other branches
- 7.3 brightcove_field/brightcove_field.module \brightcove_field_create_form()
- 7.5 brightcove_field/brightcove_field.module \brightcove_field_create_form()
Create form. Will return a form for one playlist item.
1 string reference to 'brightcove_field_create_form'
- brightcove_field_create in brightcove_field/
brightcove_field.browse.inc
File
- brightcove_field/
brightcove_field.module, line 1108 - 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_create_form($form, &$form_state) {
module_load_include('inc', 'brightcove', 'brightcove.playlist');
_brightcove_playlist_form($form, $form_state);
$form['#prefix'] = '<div id="dialog-create-form">';
$form['submit'] = array(
'#type' => 'submit',
'#name' => 'submit-',
'#default_value' => t('Create'),
'#ajax' => array(
'callback' => 'ajax_create_playlist_dialog_close_callback',
'wrapper' => 'dialog-create-form',
),
);
$form['#suffix'] = '</div>';
$form['#attached']['js'] = array(
drupal_get_path('module', 'brightcove_field') . '/js/brightcove.js',
);
$form['#attached']['css'] = array(
drupal_get_path('module', 'brightcove_field') . '/styles/upload.css',
);
return $form;
}