Coding snippets and tips for Drupal content management system.
After about 3 weeks of playing with Drupal v6 I have finally figured out how to add accesskeys to $primary_links. In this article I will show you how to do this and also how to add the keys to previous versions of Drupal too. Why this little step seemed so hard to achieve is beyond me - though none-the-less we are there how.
This little code snippet allows you display all your loaded modules that do not come with the default installation of Drupal. This may or may not be useful to people, but it can be a good comparison to others if you are experiencing conflicts with your other modules. You may want to keep this from prying eyes.
I wanted to exclude certain content types for the recent posts page when it was called without specifically tracking a user. To this end I modified tracker.module by searching for the tracker_page() function and changing the $sql statement in the conditional.
This little code snippet allows the "admin theme" to extend to the add or edit pages of your site. Open up your system.module file and search for the comment and change the script accordingly: Use the administrative theme if the user is looking at a page in the admin/* path
I use this hack to change the order of "top referrers" in the administration section of the site. Open up your statistics.module and go search the file for the statistics_top_referrers() function.