[drupal-devel] hard coded page sizes

Vernon Mauery vernon-drupal at mauery.com
Tue Oct 11 20:53:48 UTC 2005


David Reed wrote:
> I have a use to expose some of the admin type pages (logs, users etc)
> in a view with limited space available.  I noticed that the page size
> is hard coded in all modules that use drupals paging mechanism.  A
> quick glance reveals the following hard-coded pages sizes:
> 
> watchdog = 50 lines
> user = 50 lines
> statistics = 30 lines
> comment = 50 lines
> poll = 50 lines
> 
> I think it would be really usefull to provide a mechanism to override
> these hard-coded values.  I would suggest something simple like
> apending a value to the url in the query string for page size.  This
> value could be interogated by each module that calls
> theme_pager_link() to see if it should use it's hard-coded default or
> use an override.

Or a setting in the admin/settings/<module> page

--Vernon




More information about the drupal-devel mailing list