This problem particularly occurs when the views is upgraded to 3.x in Drupal 6. The nodereference field which gets list data from a view returns only 10 results irrespective of whatever is set on the views page.
There is an easy solution to alter by modifying the items_set_per_page using views hooks.
<?php
/**
* Implementing hook_views_query_alter()
* Change Item Set Per Page for a view
* @param $view
* @param $query
*/
function ji_custom_views_query_alter(&$view, &$query) {
if($view->name == 'view_name') {
$view->set_items_per_page(100);
}
}
?>
--
Source
https://www.drupal.org/node/998494#comment-3999586
https://api.drupal.org/api/views/includes%21view.inc/function/view%3A%3A...
Technologies: