You are here

function imagepicker_browse_public_form in Image Picker 5.2

Same name and namespace in other branches
  1. 6.2 imagepicker.functions.inc \imagepicker_browse_public_form()
  2. 7 imagepicker.functions.inc \imagepicker_browse_public_form()
2 string references to 'imagepicker_browse_public_form'
_imagepicker_browse_admin in ./imagepicker.module
_imagepicker_browse_public in ./imagepicker.module

File

./imagepicker.module, line 3245
Enables permitted roles to upload images for insertion into configured nodes.

Code

function imagepicker_browse_public_form() {
  $list = array(
    0 => t('All'),
    1 => t('Public'),
    2 => t('Private'),
  );
  $form['imagepicker_browse_public'] = array(
    '#type' => 'select',
    '#default_value' => variable_get('imagepicker_browse_public', 1),
    '#options' => $list,
    '#title' => t('Show'),
    '#prefix' => '<div id="imgp_browse_form" class="container-inline">',
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Go'),
    '#suffix' => '</div>',
  );
  return $form;
}