I'm trying to programmatically include a view in a module and need to limit the number of results displayed. I tried something like this, but it doesn't work:
$view->display[$display_id]->handler->options['items_per_page'] = 2;
I also tried, but neither this worked:
$view->display[$display_id]->display_options['items_per_page'] = 2;
Any ideas? Or at least some links to Views 2 programmatically implementation?
Thanks