You are here

function imagepicker_pagelink_elem in Image Picker 6.2

Same name and namespace in other branches
  1. 7 imagepicker.form-elements.inc \imagepicker_pagelink_elem()
2 calls to imagepicker_pagelink_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 18
Provides various form elements.

Code

function imagepicker_pagelink_elem($default = NULL) {
  return array(
    '#type' => 'checkbox',
    '#title' => t('Show return link in page'),
    '#description' => t('Setting this option will add a link back to the thumbnail when using the page option. Uses javascript history(back).'),
    '#return_value' => 1,
    '#default_value' => is_numeric($default) ? $default : variable_get('imagepicker_default_pagelink', 1),
  );
}