You are here

function imagepicker_max_scale_elem in Image Picker 6.2

Same name and namespace in other branches
  1. 7 imagepicker.form-elements.inc \imagepicker_max_scale_elem()
1 call to imagepicker_max_scale_elem()
imagepicker_settings_form in ./imagepicker.admin.inc
Function to display the imagepicker admin settings form

File

./imagepicker.form-elements.inc, line 47
Provides various form elements.

Code

function imagepicker_max_scale_elem($default = NULL) {
  return array(
    '#type' => 'textfield',
    '#title' => t('Maximum Scale'),
    '#description' => t('Configure the maximum scale or size. leave empty for no maximum scale'),
    '#size' => 10,
    '#required' => FALSE,
    '#default_value' => $default != NULL ? $default : variable_get('imagepicker_max_scale', ''),
  );
}