You are here

function field_kaltura_form_alter in Kaltura 6

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

File

plugins/field_kaltura/field_kaltura.module, line 112
kaltura integration module - functions to provide kaltura as CCK field

Code

function field_kaltura_form_alter(&$form, &$form_state, $form_id) {

  //var_dump($form);
  if ($form['#field']['type'] == 'Kaltura_Media') {
    $form['#field']['multiple'] = "1";
    $form['field']['multiple']['#type'] = 'hidden';
    $form['field']['multiple']['#default_value'] = 0;
  }
  unset($form['widget']['default_value_fieldset']);
}