You are here

function kaltura_form_alter in Kaltura 6

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

File

includes/kaltura.admin.inc, line 462

Code

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