function kaltura_comments_form_alter in Kaltura 6
Same name and namespace in other branches
- 5 plugins/kaltura_comments/kaltura_comments.module \kaltura_comments_form_alter()
- 6.2 plugins/kaltura_comments/kaltura_comments.module \kaltura_comments_form_alter()
File
- plugins/
kaltura_comments/ kaltura_comments.module, line 21
Code
function kaltura_comments_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'comment_form') {
$cw_vars = kaltura_format_cw_vars(array(
'kshow_id' => -2,
'partner_data' => 'entry_as_comment@yes',
'type' => '',
'context' => 'comment',
'field_id' => 'edit-comment',
));
$form['video_comment'] = array(
'#type' => 'item',
'#value' => '<input type="button" value="' . t('Video Comment') . '" onclick="kalturaInitModalBox(\'' . url('kaltura/contribution_wizard/' . $cw_vars) . '\');" />',
'#title' => t('Add Video Comment'),
);
}
}