You are here

function kaltura_clone_mix_confirm in Kaltura 6.2

CM TO DO: Document this

1 string reference to 'kaltura_clone_mix_confirm'
kaltura_clone_mix in plugins/node_kaltura_mix/node_kaltura_mix.module

File

plugins/node_kaltura_mix/node_kaltura_mix.module, line 609

Code

function kaltura_clone_mix_confirm(&$form_state) {
  $entry_id = arg(2);
  $content_type = arg(3);
  $content_type = isset($content_type) ? $content_type : 'kaltura_mix';
  $entry_metadata = kaltura_get_metadata_for_mix($entry_id);
  $entry_thumb = $entry_metadata->kaltura_thumbnail_url;
  $form['preview'] = array(
    '#value' => '<br /><img src=' . $entry_thumb . '><br />',
  );
  $form['entry_id'] = array(
    '#type' => 'value',
    '#value' => $entry_id,
  );
  $form['content_type'] = array(
    '#type' => 'value',
    '#value' => $content_type,
  );
  return confirm_form($form, "Would you like to create a new remix based on this content?", referer_uri(), "", "Yes, create a new remix", "No, thank you.");
}