I noticed a FIXME in the code, so I fixed it. This cleans up views_view_page. This may not be the best way to do it, but it works for me. I've tested it, but not on a view that uses arguments.

Comments

wrunt’s picture

StatusFileSize
new3.5 KB

oops, that patch was backwards. Here's one that goes the right way.

merlinofchaos’s picture

I need to study this patch more when I'm more awake, but having simply '$args' as the second argument is unfortunately wrong. You need to do a func_get_args or, er, whatever it's called (back to 'not very awake') and pull them out that way. What can go away is trying to deconstruct a view based upon slashes et al.

wrunt’s picture

Ok, I'll look into it.

wrunt’s picture

Yeah, it won't work. I think I've misunderstood how the callback arguments work in the menu system. I wanted to add an argument to views_view_page for this views exporting patch, but maybe I should do it a different way.

wrunt’s picture

StatusFileSize
new3.69 KB

Ok, I finally worked out what was going on with those callback arguments. The menu system adds arguments.

Here's a version that I'm pretty sure works.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed! ONly 2 months later! =)

Anonymous’s picture

Status: Fixed » Closed (fixed)