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;
    }
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;
    }
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 ; }
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.
Extra validation .