You are here

function imagepicker_iframe_width_elem in Image Picker 7

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

Code

function imagepicker_iframe_width_elem($default = NULL) {
  return array(
    '#type' => 'textfield',
    '#title' => t('Iframe width'),
    '#description' => t('Configure the iframe width. This can be a number or a percentage, eg 400 or 100%'),
    '#size' => 10,
    '#required' => TRUE,
    '#default_value' => $default != NULL ? $default : imagepicker_variable_get('imagepicker_advanced_iframe_width', "100%"),
  );
}