Skip to content

Alternative Pager. API for alternative pager. It is alternative view point on Pager functionality

License

Notifications You must be signed in to change notification settings

itpatrol/altpager

Repository files navigation

Alternative Pager

Alternative Pager. API for alternative pager. It is alternative view point on Pager functionality

Example code or module "altpager_example":

<?php

$query = db_select('node', 'n')->extend('AltPager');
$nids = $query
  ->fields('n', array('nid', 'sticky', 'created'))
  ->execute()
  ->fetchAll();
$pager = theme('altpager');

$result = $pager;

foreach ($nids as $row) {
  $node = node_load($row->nid);
  $result .= render(node_view($node));
}

$result .= theme('altpager');

echo $result;

Output is:

alt tag

About

Alternative Pager. API for alternative pager. It is alternative view point on Pager functionality

Resources

License

Stars

Watchers

Forks

Packages

No packages published