Project

General

Profile

« Previous | Next » 

Revision 053a92ec

Added by Andreas Kohlbecker about 9 years ago

replacing theme_cdm_preferred_image() function by generic base functionality for all portals

View differences:

7.x/modules/cdm_dataportal/settings.php
85 85
    array(
86 86
        'show' => 1,
87 87
        'maxextend' => 184,
88
        'media_uri_query' => '',
88 89
        'custom_placeholder_image_on' => 0,
89 90
        'custom_placeholder_image_fid' => ''
90 91
    )
......
1063 1064
  /*
1064 1065
   * 'show' => 1,
1065 1066
   * 'maxextend' => 184,
1067
   * 'media_uri_query' => ''
1066 1068
   * 'custom_placeholder_image_on' => 1,
1067 1069
   * 'custom_placeholder_image_fid' => ''
1068 1070
   */
......
1084 1086
      '#description' => t('The maximum extend in either dimension, width or height, of the profil picture in pixels.')
1085 1087
  );
1086 1088

  
1089
  $form['taxon_profile'][CDM_TAXON_PROFILE_IMAGE]['media_uri_query'] = array(
1090
      '#type' => 'textfield',
1091
      '#tree' => TRUE,
1092
      '#title' => t('Additional URI query parameter'),
1093
      '#default_value' =>  $taxon_profile_image_settings['media_uri_query'],
1094
      '#maxlength' => 1024,
1095
      '#size' => 60,
1096
      '#description' => t('Additional query parameters to be used when requesting for the '
1097
          . 'profile image. E.g.: <code>width=400&height=300&quality=95&format=jpeg</code>.'
1098
          . 'The query parameters will be appendend to the uri of the media representation part'
1099
          . ' as stored in the cdm. The query parameter string must not start with a \'&\' or  \'?\'')
1100
  );
1101

  
1087 1102
  $form['taxon_profile'][CDM_TAXON_PROFILE_IMAGE]['custom_placeholder_image_on'] = array(
1088 1103
      '#type' => 'checkbox',
1089 1104
      '#title' => t('Use a custom placeholder image'),

Also available in: Unified diff