You are here

function filefield_meta_handler_field_samplerate::options_form in FileField 6.3

File

filefield_meta/includes/filefield_meta_handler_field_samplerate.inc, line 25
A special handler that properly formats bit rate fields as kHz.

Class

filefield_meta_handler_field_samplerate
Render a field as a readable value in hours, minutes, and seconds.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);

  // Remove the separator 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 (kHz)'),
      'raw' => t('Raw numberic value'),
    ),
  );
}