Adding Module Stylesheets using drupal_add_css()
Submitted by Jeff Geerling on August 27, 2009 - 12:58pm
A couple days ago, when building a quick site with limited functionality (basically a pretty front end to a database website), I ran into a hiccup with my custom module/theme for the site, which caused me to scratch my head for a few minutes.
In my custom module (called 'idcards'), I added a stylesheet for a couple forms on the site using the drupal_add_css() function: