[development] D7 and Tablesort
saschagros at gmail.com
Mon Sep 21 17:09:33 UTC 2009
On Mon, Sep 21, 2009 at 6:59 PM, Nancy Wichmann <nan_wich at bellsouth.net> wrote:
> I'm still looking, but I am having trouble coming up with how one converts
> tablesort_sql to the new DBTNG stuff. Does anybody have a link handy?
TableSort now works as an Extender, so you need to convert your query
to a dynamic db_select() query.
You then need to extend it with "->extend('TableSort')" and add the
table header by calling "->orderByHeader($header)".
An example from core: http://api.drupal.org/api/function/poll_votes/7
Extender doc page: http://drupal.org/node/508796
More information about the development