Submitted by Bryan on
"As a self-proclaimed Drupal theming “ninja”, I’ve built plenty of sites that don’t look like Drupal. But to be honest, it’s certainly not that easy. So for the next 5.0 release of Drupal, I’ve done my best to get in as many patches as possible to making theming in Drupal easier—and you know what, we’ve certainly made some great progress. Here’s a rundown of the top theming patches that I got in:
  • #73961 — Simplify adding CSS in Drupal
  • This was a great little patch that made it very clear and consistent how to add CSS files in Drupal. In 4.7, adding CSS files was a bit of a mystery, as I outlined in a previous Lullabot article. Now, starting with 5.0, it’s very easy: drupal_add_css($cssFile, $type = 'module'). That’s it. Just specify the type of CSS file, core, module, or theme, and this function will handle the rest, loading them in a correct and consistent cascading order."

Complete Story

    CMS Topics: