You are here

function mp3player_player_submit in MP3 Player 6

Add a new player.

1 string reference to 'mp3player_player_submit'
mp3player_player_add in ./mp3player.module
Form to add a new player.

File

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

Code

function mp3player_player_submit($form, &$form_state) {
  drupal_write_record('mp3player_players', $form_state['values']);
  drupal_set_message(t("New MP3 Player %name added.", array(
    '%name' => $form_state['values']['name'],
  )));
  mp3player_rebuild_cache();
  $form_state['redirect'] = 'admin/settings/mp3player';
}