Posted By

benrasmusen on 12/21/07


Tagged

css php drupal styles


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

basicmagic
panatlantica


Drupal $styles


 / Published in: PHP
 

Add styles to drupal $styles variable

  1. <?php
  2. // Let's add some extra stylesheets to the queue in the $styles function. Set them to 'module', so they come before style.css.
  3. $styles = drupal_get_css(drupal_add_css(path_to_theme() . '/path/to/style.css', 'module', 'all', TRUE));
  4. $styles = drupal_get_css(drupal_add_css(path_to_theme() . '/path/to/style.css', 'module', 'all', TRUE));
  5. $styles = drupal_get_css(drupal_add_css(path_to_theme() . '/path/to/style.css', 'module', 'all', TRUE));
  6. $styles = drupal_get_css(drupal_add_css(path_to_theme() . '/path/to/style.css', 'module', 'all', TRUE)); ?>

Report this snippet  

You need to login to post a comment.