Project

General

Profile

« Previous | Next » 

Revision 04da88db

Added by Andreas Kohlbecker almost 11 years ago

removing tmp code again

View differences:

7.x/modules/cdm_dataportal/cdm_dataportal.module
703 703
/**
704 704
 * Implements hook_init().
705 705
 *
706
 * Initialize date formats according to the user's current locale.
706
 * can be removed after fixing the FIXME below
707 707
 */
708 708
function cdm_dataportal_init() {
709
  //FIXME code added temporarily to fix problem in test and integration portals >>>>>>
710
  $taxon_profile_image_settings = variable_get(CDM_TAXON_PROFILE_IMAGE, unserialize(CDM_TAXON_PROFILE_IMAGE_DEFAULT));
711
  if(!isset($taxon_profile_image_settings['media_uri_query'])){
712
    $taxon_profile_image_settings['media_uri_query'] = '';
713
    variable_set(CDM_TAXON_PROFILE_IMAGE, $taxon_profile_image_settings);
714
  }
715
  // <<<<<<<<<<<
709
  //FIXME To add CSS or JS that should be present on all pages, modules should not implement this hook, but declare these files in their .info file.
716 710
  drupal_add_css(drupal_get_path('module', 'cdm_dataportal') . '/cdm_dataportal.css');
717 711
  // drupal_add_css(drupal_get_path('module', 'cdm_dataportal').'/cdm_dataportal_print.css', 'print');
718 712
  drupal_add_css(drupal_get_path('module', 'cdm_dataportal') . '/cdm_dataportal_screen.css', array('type' => 'screen'));

Also available in: Unified diff