AMP integration to Drupal. Advanced level

Profile picture for user Andriy Dmytriv
AMP integration to drupal

For both average users and developers, mobile web can be slow and really frustrating experience. Since most of us are surfing Internet using our mobile devices, it became inevitable for companies to improve their websites’ load speed. AMP ( Accelerated Mobile Pages ) is an open source project which...

Color border

Drupal custom pager and table header sortable without SQL query

Profile picture for user Andriy Dmytriv
Drupal custom pager and table sort

There are cases when an array of information should be separated and displayed by page without extending the query like this.


$query->extend('PagerDefault')->limit($pager).
$query->extend('TableSort')->orderByHeader($header).

There are many reasons for this. One way to use this code is when...

Color border