You are here

function imagepicker_watermark_scaling_elem in Image Picker 7

Same name and namespace in other branches
  1. 6.2 imagepicker.form-elements.inc \imagepicker_watermark_scaling_elem()
2 calls to imagepicker_watermark_scaling_elem()
imagepicker_settings_form in ./imagepicker.admin.inc
Function to display the imagepicker admin settings form
imagepicker_user_config_admin_form in ./imagepicker.user.inc
Submit form

File

./imagepicker.form-elements.inc, line 83
@author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function imagepicker_watermark_scaling_elem($default = NULL) {
  return array(
    '#type' => 'checkbox',
    '#title' => t('Scale watermark'),
    '#description' => t('Use scaling, if you want the watermark to be proportional to the image width. Please note that the watermark is scaled only when it is too big.'),
    '#default_value' => is_numeric($default) ? $default : imagepicker_variable_get('imagepicker_watermark_scaling', 0),
  );
}