*** timplunkett-Station-Playlist-Extender-e27d147/newtrack.module       Mon Sep 28 14:17:09 2009
--- timplunkett-Station-Playlist-Extender-e27d147/newtrack.module		Thu Jan  7 20:57:08 2010
***************
*** 14,27 ****
   * Implementation of hook_form_alter().
   */
  function newtrack_form_station_playlist_node_form_alter(&$form, $form_state) {
!   $blanks = 10;
    $weight = 0;
    $node = $form['#node'];
    if (!empty($node->nid))
      $node = node_load($node->nid);
    foreach ($node->tracks as $key => $track) {
      if (is_numeric($key)) {
!       $form['tracks'][$weight]['newtrack'] = array(
          '#type' => 'checkbox',
          '#default_value' => isset($track['newtrack']) ? $track['newtrack'] : 0,
        );
--- 14,27 ----
   * Implementation of hook_form_alter().
   */
  function newtrack_form_station_playlist_node_form_alter(&$form, $form_state) {
!   $blanks = 0;
    $weight = 0;
    $node = $form['#node'];
    if (!empty($node->nid))
      $node = node_load($node->nid);
    foreach ($node->tracks as $key => $track) {
      if (is_numeric($key)) {
!       $form['tracks_wrapper']['tracks'][$weight]['newtrack'] = array(
          '#type' => 'checkbox',
          '#default_value' => isset($track['newtrack']) ? $track['newtrack'] : 0,
        );
***************
*** 29,35 ****
      }
    }
    for ($i = 0; $i < $blanks; $i++) {
!     $form['tracks'][$weight]['newtrack'] = array(
        '#type' => 'checkbox',
        '#default_value' => 0,
      );
--- 29,35 ----
      }
    }
    for ($i = 0; $i < $blanks; $i++) {
!     $form['tracks_wrapper']['tracks'][$weight]['newtrack'] = array(
        '#type' => 'checkbox',
        '#default_value' => 0,
      );
