You are here

function field_kaltura_form_alter in Kaltura 5

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

File

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

Code

function field_kaltura_form_alter($form_id, &$form) {
  if ($form['field_type']['#value'] == 'Kaltura_Media') {
    $form['field']['multiple']['#type'] = 'hidden';
    $form['field']['multiple']['#default_value'] = 0;
  }
  unset($form['widget']['default_value_fieldset']);
}