function video_filter_settings in Video Filter 5.2
Same name and namespace in other branches
- 5 video_filter.module \video_filter_settings()
- 6.3 video_filter.module \video_filter_settings()
- 6 video_filter.module \video_filter_settings()
- 6.2 video_filter.module \video_filter_settings()
1 call to video_filter_settings()
- video_filter_filter in ./
video_filter.module - Implementation of hook_filter().
File
- ./
video_filter.module, line 162
Code
function video_filter_settings($format) {
$form['video_filter'] = array(
'#type' => 'fieldset',
'#title' => t('Video filter'),
'#collapsible' => TRUE,
);
$form['video_filter']['video_filter_width_' . $format] = array(
'#type' => 'textfield',
'#title' => t('Default width setting'),
'#default_value' => variable_get('video_filter_width_' . $format, 400),
'#maxlength' => 4,
);
$form['video_filter']['video_filter_height_' . $format] = array(
'#type' => 'textfield',
'#title' => t('Default height setting'),
'#default_value' => variable_get('video_filter_height_' . $format, 400),
'#maxlength' => 4,
);
$form['video_filter']['video_filter_autoplay_' . $format] = array(
'#type' => 'radios',
'#title' => t('Default autoplay setting'),
'#description' => t('Not all video formats support this setting.'),
'#default_value' => variable_get('video_filter_autoplay_' . $format, 1),
'#options' => array(
0 => t('No'),
1 => t('Yes'),
),
);
$form['video_filter']['video_filter_related_' . $format] = array(
'#type' => 'radios',
'#title' => t('Related videos setting'),
'#description' => t('Show "related videos"? Not all video formats support this setting.'),
'#default_value' => variable_get('video_filter_related_' . $format, 1),
'#options' => array(
0 => t('No'),
1 => t('Yes'),
),
);
return $form;
}