Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
forms system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Jul 2014 at 11:10 UTC
Updated:
5 Sep 2014 at 01:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bfr commentedPhew. That was hard work :)
Comment #2
bfr commentedComment #3
bfr commentedFixed few intendation mistakes.
Comment #4
cs_shadow commentedChanges look good. I just have a small nitpick to point out:
Should we retain the line break for array here?
Comment #5
bfr commentedI was thinking about that, but i don't really understand the line break from coding standards perspective. We COULD break it (about)like this if we really wanted to:
Comment #6
cs_shadow commentedI'm in favor of doing it. AFAIK if the length of the line containing array is more than 80 chars, then the array must be split to a new line.
Agree that you version in #5 is the better way to do it.
Comment #7
bfr commentedOk, i fixed it like that, but if you look closely you'll notice that the line is still way over 80 characters - and so it was in the original file. Maybe a new, novice tagged issue is needed for the coding standards? Seems like core is full of these insanely long, over 200 character lines.
Comment #8
herom commentedrerolled. replaced two more "form_set_error" calls, fixed indentation, and removed a few optional parameters.
Comment #9
tim.plunkettPlease wait on this, we're changing how setErrorByName works in #2225353: Convert $form_state to an object and provide methods like setError()
Comment #10
herom commentedupdate after #2225353: Convert $form_state to an object and provide methods like setError().
Comment #11
ashutoshsngh commentedLast submitted patch worked fine.No trace of form_set_error found.
Comment #12
alexpottActaully this method is used in a #after_build callback and the second argument is the form state so let's fix that. This looks wrong. See views_ui_add_ajax_wrapper() for an example of an #after_build function.
Comment #13
herom commentedfixed #12.
Comment #14
herom commentedComment #15
tim.plunkettSo can we please remove the function as well, to avoid adding it back again?
Comment #16
herom commentedSure.
Comment #17
tim.plunkettThanks! (RTBC if it passes)
Comment #18
alexpottCommitted 7fff6e8 and pushed to 8.0.x. Thanks!