I am trying to get get the Drupal 7 version of the activitystream module to work. However, I need to rewrite pager_query() to Drupal 7.

How can I rewrite this?

// https://github.com/kylebrowning/activitystream/blob/DRUPAL-7--2/activitystream.module#L429
$stream = pager_query($query, $count, 0, $countquery);
while ($action = db_fetch_object($stream)) {
  $items[] = $action;
}

To Drupal 7? Thanks!

Comments

lsolesen’s picture

Bump. Anybody know this?

liamgh’s picture

I think you have to rewrite the query and use the new PagerDefault method. There are some details on this page about converting pager_query():
http://blog.worldempire.ch/story/howto-convert-module-dbtng

Hope this helps!