I've been working on a theme where I needed to display a menu in Drupal given its menu id (mid), which is the unique identifier of the parent element of the menu's items. Usually, you can assign menus to different regions in your theme but the problem with that approach is that the menu will be rendered as a multi-level list (nested ULs). In this case, I wanted a flat list, and had written my own theme function to display the links on one line with delimiters, taking an array of menu items as argument. I ended up writing a function for this purpose using parts of the code from Drupal core, a function that others might find useful.
Back on the blog with a CSS rant
My blogging behavior took a hiatus on me, the main reason being a long stay abroad and a lack of time. I still lack time, but blogging is way easier when your Internet connection has a real will to live and work. I'll probably write more about my time in the Middle East later on, but right now the reason I am writing is a recent article I read in A List Apart written by Molly E. Holzschlag titled "Thinking Outside the Grid" (link at the end of text).
Eternal* fame on the red planet for free
In August 2007 NASA will launch the next Mars lander, called Phoenix. Its mission is to probe the soil in Mars's polar regions in an attempt to find the frozen water expected to exist there. Sent along with the Phoenix is a DVD designed to last for thousands of years. On the DVD, Mars SF literature and a list of names will be printed, including yours if you so choose!
Two useful applications for mobile people
I've been a happy owner of an Apple MacBook for about two weeks now (something I'll write more about soon). Having both a desktop computer and a laptop means you need to make sure a lot of things stay synced. For me, the most important things are files, email and browser bookmarks. I use IMAP* for email so that's already taken care of but syncing files and bookmarks requires extra software, and I found just the right applications for the job. Best of all, they're both free!
The new super-improved KogVet website is launched!

The new website for the student association at the Cognitive Science program here at Link�ping University was launched two weeks ago but I haven't gotten around to posting about it until now. It's with a great feeling of accomplishment that we finally launched this site and we're thrilled at the thought of all its new features and what it will bring to the association and the students at the program. Continue reading in my portfolio...
"The Legend of Kyrandia I" in terms of flow and pleasure
I occasionally indulge in computer games. It is not something I do regularly, but I'm always on the lookout for new titles that seem promising and spend my money on those instead of buying what's popular. I love the games that do not get as much attention as they deserve, but are brilliant and in many ways better than the big selling titles. Sometimes I play old games, often adventure games, just to marvel at the graphics or at what the game creators achieved with the limited hardware they had in those days. One of my all time favorite classic titles is the first of the Kyrandia games from Westwood Studios.
According to popular opinion in Sweden, some bad will actually do good
Tonight something rare happened, a conservative coalition won the parliamentary election in Sweden but it was close, and almost even. While the result doesn't surprise me, what amazes me is how easy it was to redefine the image of conservative party as an alternative similar to the social democrats, with policies not so different, and convince a large portion of the population of that. Perhaps people are so desperate, and so eager to forget recent history, that they're prepared to vote their political enemies into power as a manifestation of the disappointment in the now former social democratic government. Regardless of the success of said strategy it's not a recipe for a lasting solution and long-term political success. After all four years can pass rather quickly...
I'm co-founder and consultant at NodeOne, a Drupal consulting firm. My background is in cognitive science and computer science and I've worked as a web developer for over ten years. During that time I've done web design and development based on usability and web standards. I've also worked with phpBB, offering customization, theming and development phpBB sites and themes. I'm currently working as project lead and systems architect, building first class web sites, intranets and web applications on Drupal.
This is my personal website, home of my blog and my portfolio. The website also features articles and tutorials on web design, usability and other cognitive scientific musings as well as reflections on politics and society. You'll also find my free phpBB templates here.
Enjoy your stay and come back soon! Should you have any questions or comments do not hesitate to contact me.
/jakob
Recent
Recent blog posts
- Five perhaps not-so-known PHP tricks for leaner and cleaner code
- PHPEclipse and PDT
- Kilowatts & Vanek are back, better than ever
- The future of my phpBB templates
- Checking in
- Web Design or the Art and Science of Solving Problems (Part 1)
- Lost in thought
- An easy way to display a customized menu in your Drupal theme
- Back on the blog with a CSS rant
- Eternal* fame on the red planet for free