You are here

function imagepicker_group_search_form in Image Picker 5.2

Same name and namespace in other branches
  1. 6.2 imagepicker.admin.inc \imagepicker_group_search_form()
  2. 7 imagepicker.admin.inc \imagepicker_group_search_form()
1 string reference to 'imagepicker_group_search_form'
imagepicker_admin_groups in ./imagepicker.module

File

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

Code

function imagepicker_group_search_form($dir = 'groups') {
  $form['imagepicker_currentgroup'] = array(
    '#type' => 'textfield',
    '#title' => t('Groups'),
    '#description' => '',
    '#autocomplete_path' => 'admin/settings/imagepicker/' . $dir . '/autocomplete',
    '#default_value' => '',
    '#maxlength' => 30,
    '#size' => 25,
    '#prefix' => '<div class="container-inline">',
  );
  $form['dir'] = array(
    '#type' => 'hidden',
    '#value' => $dir,
  );
  $form['imagepicker_group_search_submit'] = array(
    '#type' => 'submit',
    '#value' => 'Go',
    '#suffix' => '</div>',
  );
  return $form;
}