[development] how to use an argument to get a row to appear first in a View

Earl Miles merlin at logrus.com
Mon Mar 28 18:09:50 UTC 2011


On 3/28/2011 9:00 AM, Idan Arbel wrote:
> Thanks,
> 
>  
> 
> But the question is how do I sort them using an argument?
> 
> If you’ look here:

Set your argument to Global: Null so that the argument does not affect
the view itself.

Utilize hook_views_pre_render() and use array manipulation to reorder
$view->result before anything is rendered.


More information about the development mailing list