Commit abb7002f authored by Dave Reid's avatar Dave Reid

Issue #2130189 by wojtha, ppound: Fixed broken pager on custom links admin listing.

parent 696ab938
......@@ -21,11 +21,13 @@ function xmlsitemap_custom_list_links() {
$rows = array();
$destination = drupal_get_destination();
$query = db_select('xmlsitemap');
$query = db_select('xmlsitemap')
->extend('PagerDefault')
->extend('TableSort');
$query->fields('xmlsitemap');
$query->condition('type', 'custom');
$query->extend('PagerDefault')->limit(50);
$query->extend('TableSort')->orderByHeader($header);
$query->limit(25);
$query->orderByHeader($header);
$result = $query->execute();
foreach ($result as $link) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment