You are here

function imagepicker_get_show_opts in Image Picker 6.2

Same name and namespace in other branches
  1. 7 imagepicker.form-elements.inc \imagepicker_get_show_opts()
3 calls to imagepicker_get_show_opts()
imagepicker_image_form in ./imagepicker.functions.inc
Function to display the image insertion form
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 227
Provides various form elements.

Code

function imagepicker_get_show_opts($default = NULL) {
  $showoptions = array(
    'full' => t('Full size'),
    'thumb' => t('Thumbnail'),
    'title' => t('Title'),
  );
  return array(
    '#type' => 'radios',
    '#id' => 'show',
    '#title' => t('Show'),
    '#options' => $showoptions,
    '#description' => '',
    '#default_value' => $default != NULL ? $default : variable_get('imagepicker_insert_defaults_show', 'full'),
  );
}