Project

General

Profile

« Previous | Next » 

Revision b85ab055

Added by Andreas Kohlbecker almost 11 years ago

code added temporarily to fix problem in test and integration portals

View differences:

7.x/modules/cdm_dataportal/cdm_dataportal.module
701 701
}
702 702

  
703 703
/**
704
 * @todo Please document this function.
705
 * @see http://drupal.org/node/1354
704
 * Implements hook_init().
705
 *
706
 * Initialize date formats according to the user's current locale.
706 707
 */
707 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
  // <<<<<<<<<<<
708 716
  drupal_add_css(drupal_get_path('module', 'cdm_dataportal') . '/cdm_dataportal.css');
709 717
  // drupal_add_css(drupal_get_path('module', 'cdm_dataportal').'/cdm_dataportal_print.css', 'print');
710 718
  drupal_add_css(drupal_get_path('module', 'cdm_dataportal') . '/cdm_dataportal_screen.css', array('type' => 'screen'));

Also available in: Unified diff