Project

General

Profile

bug #6432 » 6432_css_only_admin.patch

Saskia Gennrich, 02/24/2017 03:52 PM

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';
(1-1/2)