function kaltura_vc_settings_form in Kaltura 5
Same name and namespace in other branches
- 6.2 plugins/kaltura_comments/kaltura_comments.module \kaltura_vc_settings_form()
- 6 plugins/kaltura_comments/kaltura_comments.module \kaltura_vc_settings_form()
1 string reference to 'kaltura_vc_settings_form'
- kaltura_comments_menu in plugins/
kaltura_comments/ kaltura_comments.module
File
- plugins/
kaltura_comments/ kaltura_comments.module, line 59
Code
function kaltura_vc_settings_form() {
$form['kaltura_comment_display'] = array(
'#type' => 'fieldset',
'#title' => t('Display settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#weight' => -1,
);
$players = kaltura_choose_player(0, 'comment', 'mix');
$saved_player = variable_get('kaltura_comment_entry_widget', KalturaSettings_DEFAULT_COMMENT_PLAYER_UICONF);
$form['kaltura_comment_display']['kaltura_comment_entry_widget'] = $players['default_widget'];
$form['kaltura_comment_display']['kaltura_comment_entry_widget']['#default_value'] = $saved_player;
$form['kaltura_comment_display']['clear_block_item'] = array(
'#type' => 'item',
'#value' => '<div class="clear-block"></div>',
);
$form['kaltura_comment_display']['kaltura_comment_width'] = array(
'#type' => 'textfield',
'#size' => 5,
'#title' => t('Width (in pixels)'),
'#default_value' => variable_get('kaltura_comment_width', '250'),
);
$form['kaltura_comment_display']['kaltura_comment_height'] = array(
'#type' => 'textfield',
'#size' => 5,
'#title' => t('Height (in pixels)'),
'#default_value' => variable_get('kaltura_comment_height', '244'),
);
return system_settings_form($form);
}