Updated: Comment #N

Problem/Motivation

We still have methods like views_form_validate, views_form_submit.

Proposed resolution

Camelize them. I have stuck with viewsForm* as it is then clear that this is invoked in the context of a actual rendered view. we have validateOptionsForm() etc.. already, I'm happy to change to validateForm etc.. but this might be confusing, unless we have any better naming suggestions?

Remaining tasks

Do it

User interface changes

None

API changes

Any views form implementations will need to change their method names.

#2110953: Change record: Convert views_forms() to a classed form - This patch may conflict with that one currently, so get that one in first. This initial patch is what it needs to be in the new viewsForm class methods.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

damiankloip’s picture

Issue summary: View changes
FileSize
8.47 KB

Just a reroll.

damiankloip’s picture

Status: Active » Needs review

*^%#^$%^&$#$####

dawehner’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +VDC

Nice work!

webchick’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Approved API change

No longer applies.

And... I guess this still makes sense to do, for consistency's sake, so adding the tag. I really would love to see us stop this sort of API polishing soon, though. How many of these camelize things are left until we're done?

damiankloip’s picture

Status: Needs work » Needs review
FileSize
8.49 KB

That's a fair point :) This *IS* the last one. I just grepped the codebase to double check and this seems to be the last one in views classes...

There was flawed logic in the creation of the great views camel casing issues of 2013 I'm afraid (I think it was the views plugin base classes that were used, so didn't quite catch all the the things).

damiankloip’s picture

Status: Needs review » Reviewed & tested by the community

So, based on that - back to RTBC?

dawehner’s picture

+1 for RTBC, I would not be sure that this is the last one, though there won't be many, this is sure.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Ok, cool. Committed and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.