You are here

function _mostpopular_load_stylesheets in Drupal Most Popular 6

Loads the stylesheets for the most popular block.

Which stylesheets are loaded depends on the administrator settings.

2 calls to _mostpopular_load_stylesheets()
theme_mostpopular_block in ./mostpopular.block.inc
The main theme function for the most popular block. This theme loads the javascript helper file and a basic stylesheet.
theme_mostpopular_page in ./mostpopular.block.inc
The main theme function for the most popular page. This theme loads the basic stylesheet but no javascript.

File

./mostpopular.block.inc, line 85
Defines all the pages, blocks and themes for rendering the most popular data to general users.

Code

function _mostpopular_load_stylesheets() {
  switch (variable_get('mostpopular_styling', MOSTPOPULAR_STYLE_FULL)) {
    case MOSTPOPULAR_STYLE_BASIC:
      drupal_add_css(drupal_get_path('module', 'mostpopular') . '/css/mostpopular-basic.css');
      break;
    case MOSTPOPULAR_STYLE_FULL:
      drupal_add_css(drupal_get_path('module', 'mostpopular') . '/css/mostpopular-basic.css');
      drupal_add_css(drupal_get_path('module', 'mostpopular') . '/css/mostpopular-full.css');
      break;
  }
}