original_string: protected function extra_validation($data, $files, array &$errors) {
          $newerrors = array();
          // Move the error from scaleconfiguration to the form element scale ID.
          if (isset($errors['scaleconfiguration']) && !isset($errors['scaleid'])) {
              $newerrors['scaleid'] = $errors['scaleconfiguration'];
              unset($errors['scaleconfiguration']);
          }
          return $newerrors;
      }
code: protected function extra_validation($data, $files, array &$errors) {
          $newerrors = array();
          // Move the error from scaleconfiguration to the form element scale ID.
          if (isset($errors['scaleconfiguration']) && !isset($errors['scaleid'])) {
              $newerrors['scaleid'] = $errors['scaleconfiguration'];
              unset($errors['scaleconfiguration']);
          }
          return $newerrors;
      }
code_tokens: protected function extra_validation ( $ data , $ files , array & $ errors ) { $ newerrors = array ( ) ; // Move the error from scaleconfiguration to the form element scale ID. if ( isset ( $ errors [ 'scaleconfiguration' ] ) && ! isset ( $ errors [ 'scaleid' ] ) ) { $ newerrors [ 'scaleid' ] = $ errors [ 'scaleconfiguration' ] ; unset ( $ errors [ 'scaleconfiguration' ] ) ; } return $ newerrors ; }
docstring: Extra validation.
  
  @param  stdClass $data Data to validate.
  @param  array $files Array of files.
  @param  array $errors Currently reported errors.
  @return array of additional errors, or overridden errors.
docstring_tokens: Extra validation .