You are here

function mp3player_player_edit_submit in MP3 Player 6

Edit a player.

1 string reference to 'mp3player_player_edit_submit'
mp3player_player_edit in ./mp3player.module
Form to edit a player.

File

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

Code

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