original_string: protected function addTrackSelect(array &$elements, $data, $elementId = 'gto_id_track')
      {
          // Store for use in addFillerSelect
          $this->trackFieldId = $elementId;
          
          $orgs   = $this->currentUser->getRespondentOrganizations();
          $tracks = $this->util->getTrackData()->getTracksForOrgs($orgs);
  
          if (count($tracks) > 1) {
              $elements[$elementId] = $this->_createSelectElement($elementId, $tracks, $this->_('(select a track)'));
              $elements[$elementId]->setAttrib('onchange', 'this.form.submit();');
          }
      }
code: protected function addTrackSelect(array &$elements, $data, $elementId = 'gto_id_track')
      {
          // Store for use in addFillerSelect
          $this->trackFieldId = $elementId;
          
          $orgs   = $this->currentUser->getRespondentOrganizations();
          $tracks = $this->util->getTrackData()->getTracksForOrgs($orgs);
  
          if (count($tracks) > 1) {
              $elements[$elementId] = $this->_createSelectElement($elementId, $tracks, $this->_('(select a track)'));
              $elements[$elementId]->setAttrib('onchange', 'this.form.submit();');
          }
      }
code_tokens: protected function addTrackSelect ( array & $ elements , $ data , $ elementId = 'gto_id_track' ) { // Store for use in addFillerSelect $ this -> trackFieldId = $ elementId ; $ orgs = $ this -> currentUser -> getRespondentOrganizations ( ) ; $ tracks = $ this -> util -> getTrackData ( ) -> getTracksForOrgs ( $ orgs ) ; if ( count ( $ tracks ) > 1 ) { $ elements [ $ elementId ] = $ this -> _createSelectElement ( $ elementId , $ tracks , $ this -> _ ( '(select a track)' ) ) ; $ elements [ $ elementId ] -> setAttrib ( 'onchange' , 'this.form.submit();' ) ; } }
docstring: Add track select to the elements array
  
  @param array $elements
  @param array $data
  @param string $elementId
docstring_tokens: Add track select to the elements array