function getid3_metadata_audio_bitrate::options_form in getID3() 7.2
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- includes/
handlers/ getid3_metadata_audio_bitrate.inc, line 18
Class
- getid3_metadata_audio_bitrate
- Field handler to render width
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
// Remove the separator and alter options since we don't need them.
unset($form['separator']);
$form['prefix']['#weight'] = 10;
$form['suffix']['#weight'] = 10;
$form['format'] = array(
'#type' => 'select',
'#title' => t('Format'),
'#default_value' => $this->options['format'],
'#options' => array(
'default' => t('Default (Mbps or Kbps)'),
'raw' => t('Raw numberic value'),
),
);
}