You are here

function sm2_audio_admin in SoundManager2 6.2

1 string reference to 'sm2_audio_admin'
soundmanager2_menu in ./soundmanager2.module

File

sm2_audio/sm2_audio.module, line 121

Code

function sm2_audio_admin() {
  $form = array();
  $form['sm2_audio_waveform'] = array(
    // useWaveformData: true
    '#type' => 'checkbox',
    '#title' => t('Waveform'),
    '#default_value' => variable_get('sm2_audio_waveform', true),
    '#description' => t("Turn on waveform."),
  );
  $form['sm2_audio_eq'] = array(
    // useEQData: true
    '#type' => 'checkbox',
    '#title' => t('EQ'),
    '#default_value' => variable_get('sm2_audio_eq', true),
    '#description' => t("Turn on eq."),
  );
  $form['sm2_audio_amplifier'] = array(
    // useAplifier: true
    '#type' => 'checkbox',
    '#title' => t('Amplifier'),
    '#default_value' => variable_get('sm2_audio_amplifier', true),
    '#description' => t("Turn on Amplifier."),
  );

  //$form['sm2_audio_circle_diameter'] = array( //circleDiameter: 256 (1-256

  //  '#type' => 'textfield',
  //  '#title' => t('Circle Diameter'),
  //  '#default_value' => variable_get('sm2_audio_circle_diameter', '256'),
  //  '#description' => t('Size') .' 1-256',
  //  '#size' => 4,
  //  '#maxlength' => 3,
  //  '#required' => TRUE,

  //);

  //$form['sm2_audio_waveform_thickness'] = array(

  //  '#type' => 'textfield',
  //  '#title' => t('Waveform Thickness'),
  //  '#default_value' => variable_get('sm2_audio_waveform_thickness', '20'),
  //  '#description' => t('Thickness') .' 1-100',
  //  '#size' => 4,
  //  '#maxlength' => 3,
  //  '#required' => TRUE,

  //);

  //$form['sm2_audio_wave_downsample'] = array(

  //  '#type' => 'textfield',
  //  '#title' => t('Wave Downsample'),
  //  '#default_value' => variable_get('sm2_audio_wave_downsample', '4'),
  //  '#description' => t('Scale') .' 1-16',
  //  '#size' => 3,
  //  '#maxlength' => 2,
  //  '#required' => TRUE,

  //);

  //$form['sm2_audio_eq_thickness'] = array(

  //  '#type' => 'textfield',
  //  '#title' => t('EQ thickness'),
  //  '#default_value' => variable_get('sm2_audio_eq_thickness', '20'),
  //  '#description' => t('Thickness') .' 1-50',
  //  '#size' => 3,
  //  '#maxlength' => 2,
  //  '#required' => TRUE,

  //);

  //$form['sm2_audio_eq_downsample'] = array(

  //  '#type' => 'textfield',
  //  '#title' => t('EQ downsample'),
  //  '#default_value' => variable_get('sm2_audio_eq_downsample', '5'),
  //  '#description' => t('Scale') .' 1-16',
  //  '#size' => 3,
  //  '#maxlength' => 2,
  //  '#required' => TRUE,

  //);

  //$form['sm2_audio_wf_position'] = array(

  //  '#type' => 'radios',
  //  '#title' => t('Waveform Position'),
  //  '#default_value' => variable_get('sm2_audio_wf_position', 0),
  //  '#options' => array(t('Inside'), t('Outside')),

  //);

  //$form['sm2_audio_eq_position'] = array(

  //  '#type' => 'radios',
  //  '#title' => t('EQ Position'),
  //  '#default_value' => variable_get('sm2_audio_eq_position', 1),
  //  '#options' => array(t('Inside'), t('Outside')),

  //);

  //$form['sm2_audio_waveform_color'] = array(

  //  '#type' => 'textfield',
  //  '#title' => t('Waveform Color'),
  //  '#default_value' => variable_get('sm2_audio_waveform_color', '#0099ff'),
  //  '#description' => t('Color in hex or transparent'),
  //  '#size' => 15,
  //  '#maxlength' => 14,
  //  '#required' => TRUE,

  //);

  //$form['sm2_audio_eq_color'] = array(

  //  '#type' => 'textfield',
  //  '#title' => t('EQ Color'),
  //  '#default_value' => variable_get('sm2_audio_eq_color', '#339933'),
  //  '#description' => t('Color in hex or transparent'),
  //  '#size' => 15,
  //  '#maxlength' => 14,
  //  '#required' => TRUE,

  //);

  //$form['sm2_audio_loaded_color'] = array(

  //  '#type' => 'textfield',
  //  '#title' => t('Loaded Color'),
  //  '#default_value' => variable_get('sm2_audio_loaded_color', '#ccc'),
  //  '#description' => t('Color in hex or transparent'),
  //  '#size' => 15,
  //  '#maxlength' => 14,
  //  '#required' => TRUE,

  //);

  //$form['sm2_audio_progress_color'] = array(

  //  '#type' => 'textfield',
  //  '#title' => t('Progress Color'),
  //  '#default_value' => variable_get('sm2_audio_progress_color', '#ff33ff'),
  //  '#description' => t('Color in hex or transparent'),
  //  '#size' => 15,
  //  '#maxlength' => 14,
  //  '#required' => TRUE,

  //);

  //$form['sm2_audio_background_color'] = array(

  //  '#type' => 'textfield',
  //  '#title' => t('Background Color'),
  //  '#default_value' => variable_get('sm2_audio_background_color', '#eee'),
  //  '#description' => t('Color in hex or transparent'),
  //  '#size' => 15,
  //  '#maxlength' => 14,
  //  '#required' => TRUE,

  //);
  return system_settings_form($form);
}