You are here

function kaltura_playlist_form in Kaltura 6

Same name and namespace in other branches
  1. 5 plugins/kaltura_playlist/kaltura_playlist.module \kaltura_playlist_form()
  2. 6.2 plugins/kaltura_playlist/kaltura_playlist.module \kaltura_playlist_form()

File

plugins/kaltura_playlist/kaltura_playlist.module, line 109

Code

function kaltura_playlist_form(&$node, &$param) {
  $type = node_get_types('type', $node);
  $form['title'] = array(
    '#type' => 'textfield',
    '#title' => check_plain($type->title_label),
    '#required' => TRUE,
    '#default_value' => $node->title,
    '#weight' => -5,
  );
  $available_views = kaltura_get_relevant_views();
  $form['playlist_view'] = array(
    '#type' => 'select',
    '#title' => t('View'),
    '#description' => t('The list includes only views that selects the "Kaltura media ID" field in the default display.'),
    '#options' => $available_views,
    '#required' => TRUE,
    '#default_value' => $node->playlist_view,
  );
  return $form;
}