Is it possible to specify the format of an argument that appears in the view title? Currently I can set the granularity to month and therfore display October 2010, but I want it to just say October. I have created a patch which adds an additional field to the argument settings which allows you to specify a custom format. Is this the right approach?

Comments

alexkb’s picture

Awesome patch mstrelan!

+1 to have it committed to HEAD.

Thanks.

Cranberry’s picture

That's awesome, thank you buddy!
Definitely have to be committed to HEAD.

bohz’s picture

StatusFileSize
new2.4 KB

Hi!
thanks for the patch, it is a needed feature indeed.
I have extended it in order to work also for argument summaries against 6.x-2.7. Also, I have added the date_format option in the option_definition() function, plus I have set a default value (it didn't work without for me).
IMPORTANT: please review my patch before applying it for I am a bit inexperienced in the field. :)

mstrelan’s picture

Status: Needs review » Reviewed & tested by the community

Looks good bohz

choster’s picture

Works for me as well, but I think this hasn't been committed because feature additions are supposed to be made to the newest version and backported. Does anyone have time to submit the appropriate patch for D7?

arlinsandbulte’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev
Status: Reviewed & tested by the community » Needs work

6.x-2.x is almost in big-fix only mode, so this might be "won't fix."

But instead of setting it as such, I am going to push it into the 7.x-2.x queue for work and review.
After this issue is addressed in 7.x-2.x, we will decide if it should be back-ported to D6.x-2.x.