Skip to main content


Display Current user's name in main menu

Recently I had the need to display the currently logged in user's name in the main menu region. The requirement was so simple, for non-logged in users the site should just show the main menu, but for logged in users it must display their name as the first item in the main menu.

sabareesh Thu, 03/21/2013 - 06:06
knackforge blog knowledge base
knackforge blog knowledge base

Drupal : Disable sticky header behavior of theme_table()

Lately I have been working on a potential Drupal 6 project that needs displaying information in a formatted table structure. Needless to say I have been using a lot of pager_query() and theme_table(). Yes, I do understand the benefits of hook_views_data() but this is a different case.

One thing I found to be annoying about theme_table() is it's default behavior of adding sticky table header and not having an argument that can be passed to disable it when needed as introduced in D7

Subscribe to phptemplate_preprocess_page()