You are here

function imagepicker_scale_elem in Image Picker 7

Same name and namespace in other branches
  1. 6.2 imagepicker.form-elements.inc \imagepicker_scale_elem()
2 calls to imagepicker_scale_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 40
@author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function imagepicker_scale_elem($default = NULL) {
  return array(
    '#type' => 'textfield',
    '#title' => t('Default Scale'),
    '#description' => t('Configure the default scale. leave empty for no default scale'),
    '#size' => 10,
    '#required' => FALSE,
    '#default_value' => $default != NULL ? $default : imagepicker_variable_get('imagepicker_default_scale', ''),
  );
}