function kaltura_mix_settings_form in Kaltura 6
Same name and namespace in other branches
- 5 plugins/node_kaltura_mix/node_kaltura_mix.module \kaltura_mix_settings_form()
- 6.2 plugins/node_kaltura_mix/node_kaltura_mix.module \kaltura_mix_settings_form()
1 string reference to 'kaltura_mix_settings_form'
- node_kaltura_mix_menu in plugins/
node_kaltura_mix/ node_kaltura_mix.module - Implementation of hook_menu().
File
- plugins/
node_kaltura_mix/ node_kaltura_mix.module, line 59
Code
function kaltura_mix_settings_form() {
$taxonomy_array = taxonomy_get_vocabularies($type = 'kaltura_mix');
$options[] = '';
foreach ($taxonomy_array as $voc) {
if ($voc->tags == 1) {
$options[$voc->vid] = $voc->name;
}
}
$form['mix_taxonomy'] = array(
'#type' => 'fieldset',
'#title' => 'Taxonomy',
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#weight' => 0,
);
$form['mix_taxonomy']['kaltura_mix_tags_voc'] = array(
'#title' => 'Taxonomy Vocabulary for Tags',
'#description' => 'must be a \'free tagging\' vocabulary that is enabled for kaltura mix content type<br />only vocabularies that meets these requirements will apear in the list',
'#type' => 'select',
'#options' => $options,
'#default_value' => variable_get('kaltura_mix_tags_voc', ''),
'#required' => FALSE,
);
$form['mix_taxonomy']['kaltura_mix_admin_tags_voc'] = array(
'#title' => 'Taxonomy Vocabulary for Admin Tags',
'#description' => 'must be a \'free tagging\' vocabulary that is enabled for kaltura mix content type<br />only vocabularies that meets these requirements will apear in the list',
'#type' => 'select',
'#options' => $options,
'#default_value' => variable_get('kaltura_mix_admin_tags_voc', ''),
'#required' => FALSE,
);
$form['kaltura_mix_display'] = array(
'#type' => 'fieldset',
'#title' => t('Display settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#weight' => -1,
);
$players = kaltura_choose_player(0, 'roughcut', 'mix');
$saved_player = variable_get('kaltura_roughcut_mix_widget', KalturaSettings_DEFAULT_RC_PLAYER_UICONF);
$form['kaltura_mix_display']['kaltura_roughcut_mix_widget'] = $players['default_widget'];
$form['kaltura_mix_display']['kaltura_roughcut_mix_widget']['#default_value'] = $saved_player;
$form['kaltura_mix_display']['clear_block_item'] = array(
'#type' => 'item',
'#value' => '<div class="clear-block"></div>',
);
$form['kaltura_mix_display']['kaltura_mix_width'] = array(
'#type' => 'textfield',
'#size' => 5,
'#title' => t('Player Width (in pixels)'),
'#default_value' => variable_get('kaltura_mix_width', '410'),
);
$form['kaltura_mix_display']['kaltura_mix_height'] = array(
'#type' => 'textfield',
'#size' => 5,
'#title' => t('Player Height (in pixels)'),
'#default_value' => variable_get('kaltura_mix_height', '364'),
);
$form['kaltura_mix_display']['kaltura_mix_thumb_width'] = array(
'#type' => 'textfield',
'#size' => 5,
'#title' => t('Thumbnail Width'),
'#default_value' => variable_get('kaltura_mix_thumb_width', '120'),
);
$form['kaltura_mix_display']['kaltura_mix_thumb_height'] = array(
'#type' => 'textfield',
'#size' => 5,
'#title' => t('Thumbnail Height'),
'#default_value' => variable_get('kaltura_mix_thumb_height', '90'),
);
$form['kaltura_mix_display']['kaltura_display_mix_teaser_with_player'] = array(
'#type' => 'radios',
'#title' => t('In Teaser Mode - Display Only Thumbnail'),
'#options' => array(
'0' => 'Only thumbnail',
'1' => 'Thumbnail and player',
),
'#default_value' => variable_get('kaltura_display_mix_teaser_with_player', '0'),
);
return system_settings_form($form);
}