customized module with sort feature
vj0914 - May 23, 2008 - 19:34
I wrote a module and trying to add sort feature to it, not sure how to do it. it will be basically sort by title and sort by date.
any anyone give me a hint?
I wrote a module and trying to add sort feature to it, not sure how to do it. it will be basically sort by title and sort by date.
any anyone give me a hint?
If yoy are using a
If yoy are using a theme('table', ...) function, you can use the sorting schema for it....
take a look at this example:
http://api.drupal.org/api/function/user_admin_account/6
cya
--
Pedro Faria de Mirando Pinto
http://www.phpavancado.net - DevBlog (pt_BR)
http://www.eusouopedro.com - Blog (pt_BR)
irc://irc.freenode.org/drupal-br - IRC Help channel (pt_BR)
Pedro, thanks for your
Pedro, thanks for your reply.
mine module is a little bit different, I didn't use theme function. I created a page content in my module, then I manually constructed the table based on the table view from Views module.
so I guess my question is how I can make the sort function as same as the table view in Views module.