Is there a way to display pages within a PHP function?

For example, I have setup a php function that reads from a directory and returns all the images within that directory and displays them. I want to pass a limit parameter to that function and when that limit is reached, I want to insert

.

However, this doesn't work using echo '<!--pagebreak-->';

Can you help?

Comments

Gurpartap Singh’s picture

Status: Active » Fixed

Paging is different that your needs. It's meant to page only nodes(content). You might want to look at http://api.drupal.org/apis/5/pager

Anonymous’s picture

Status: Fixed » Closed (fixed)