Project

General

Profile

« Previous | Next » 

Revision 8fc089e1

Added by Saskia Gennrich about 7 years ago

ref #6432 apply css only to non-admin pages

View differences:

modules/cdm_dataportal/cdm_dataportal.module
635 635
 *
636 636
 */
637 637
function cdm_dataportal_init() {
638
  //FIXME To add CSS or JS that should be present on all pages, modules
639
  //      should not implement this hook, but declare these files in their .info file.
640
  drupal_add_css(drupal_get_path('module', 'cdm_dataportal') . '/cdm_dataportal.css');
641
  // drupal_add_css(drupal_get_path('module', 'cdm_dataportal').'/cdm_dataportal_print.css', 'print');
642
  drupal_add_css(drupal_get_path('module', 'cdm_dataportal') . '/cdm_dataportal_screen.css', array('type' => 'screen'));
638
  if (!path_is_admin(current_path())) {
639
    //FIXME To add CSS or JS that should be present on all pages, modules
640
    //      should not implement this hook, but declare these files in their .info file.
641
    drupal_add_css(drupal_get_path('module', 'cdm_dataportal') . '/cdm_dataportal.css');
642
    // drupal_add_css(drupal_get_path('module', 'cdm_dataportal').'/cdm_dataportal_print.css', 'print');
643
    drupal_add_css(drupal_get_path('module', 'cdm_dataportal') . '/cdm_dataportal_screen.css', array('type' => 'screen'));
644
  }
643 645

  
644 646
  if(variable_get('cdm_debug_mode', FALSE)){
645 647
    $file = 'temporary://drupal_debug.txt';

Also available in: Unified diff