You are here

function mp3player_settings_form in MP3 Player 7.2

Form to add a new player.

1 string reference to 'mp3player_settings_form'
mp3player_menu in ./mp3player.module
Implementation of hook_menu().

File

./mp3player.module, line 157
mp3player main module file.

Code

function mp3player_settings_form() {
  $form['mp3player_encode'] = array(
    '#type' => 'select',
    '#title' => t('Encode Audio File URLs'),
    '#default_value' => variable_get('mp3player_encode', 'no'),
    '#options' => array(
      'no' => t('No'),
      'yes' => t('Yes'),
    ),
    '#description' => t('Indicates that the mp3 file urls are encoded.'),
  );
  if (module_exists('filefieldmp3player')) {
    $options = array(
      'description' => t('Description'),
    );
    if (module_exists('id3')) {
      $options['id3'] = t('ID3 Template');
    }
    $form['mp3player_description'] = array(
      '#type' => 'select',
      '#title' => t('FileField Description Value'),
      '#default_value' => variable_get('mp3player_description', 'description'),
      '#options' => $options,
      '#description' => t('Either use default description field or ID3 template file (if available).'),
    );
  }
  return system_settings_form($form);
}