How about adding a variable in the Drupal settings table for pagination_disabled, which defaults to FALSE, but then we can override that in a site's settings.php file. My use case is that I have a mobile site that I don't want pages on (m.example.com), but I do want them available on the desktop site (www.example.com). So I could have a DOCROOT/sites/m.example.com/settings.php file where I say something like $conf['pagination_disabled'] = TRUE. Then the Pagination class's getValue() method can check that and if TRUE, return 0, which should stop the node hooks from doing their thing.

CommentFileSizeAuthor
#1 override-2044381-2.patch489 bytesjason_purdy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jason_purdy’s picture

Status: Active » Needs review
FileSize
489 bytes

Here's a simple patch to getValue() that checks for the variable and returns 0 (no pagination) if the pagination_disabled setting (which defaults to FALSE) is set to TRUE.