original_string: function definition_after_data() {
          $mform   = $this->_form;
          $columns = $this->_customdata['columns'];
  
          foreach ($columns as $column) {
              if ($mform->elementExists($column)) {
                  $mform->removeElement($column);
              }
          }
  
          if (!in_array('password', $columns)) {
              // password resetting makes sense only if password specified in csv file
              if ($mform->elementExists('uuforcepasswordchange')) {
                  $mform->removeElement('uuforcepasswordchange');
              }
          }
      }
code: function definition_after_data() {
          $mform   = $this->_form;
          $columns = $this->_customdata['columns'];
  
          foreach ($columns as $column) {
              if ($mform->elementExists($column)) {
                  $mform->removeElement($column);
              }
          }
  
          if (!in_array('password', $columns)) {
              // password resetting makes sense only if password specified in csv file
              if ($mform->elementExists('uuforcepasswordchange')) {
                  $mform->removeElement('uuforcepasswordchange');
              }
          }
      }
code_tokens: function definition_after_data ( ) { $ mform = $ this -> _form ; $ columns = $ this -> _customdata [ 'columns' ] ; foreach ( $ columns as $ column ) { if ( $ mform -> elementExists ( $ column ) ) { $ mform -> removeElement ( $ column ) ; } } if ( ! in_array ( 'password' , $ columns ) ) { // password resetting makes sense only if password specified in csv file if ( $ mform -> elementExists ( 'uuforcepasswordchange' ) ) { $ mform -> removeElement ( 'uuforcepasswordchange' ) ; } } }
docstring: Form tweaks that depend on current data.
docstring_tokens: Form tweaks that depend on current data .