You are here

function kaltura_form_alter in Kaltura 5

Same name and namespace in other branches
  1. 6.2 includes/kaltura.admin.inc \kaltura_form_alter()
  2. 6 includes/kaltura.admin.inc \kaltura_form_alter()

File

includes/kaltura.admin.inc, line 457

Code

function kaltura_form_alter($form_id, &$form) {
  if (variable_get('kaltura_partner_id', '') == '') {
    if ($form_id == 'kaltura_settings_form') {
      unset($form['buttons']['submit']);
      unset($form['buttons']['preview']);
      unset($form['buttons']['reset']);
    }
  }
}