On Mon, Sep 21, 2009 at 6:59 PM, Nancy Wichmann <[email protected]> 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)".

Some Links:

An example from core: http://api.drupal.org/api/function/poll_votes/7
Extender doc page: http://drupal.org/node/508796

Berdir

Reply via email to