You are here

function imagepicker_get_show_opts in Image Picker 7

Same name and namespace in other branches
  1. 6.2 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 223
@author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

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 : imagepicker_variable_get('imagepicker_insert_defaults_show', 'full'),
    '#prefix' => '<div class="imgp_img_options">',
    '#suffix' => '</div>',
  );
}