function imagepicker_user_search_form in Image Picker 6.2
Same name and namespace in other branches
- 5.2 imagepicker.module \imagepicker_user_search_form()
- 7 imagepicker.admin.inc \imagepicker_user_search_form()
Function to display the imagepicker user search form
Return value
Returns the form.
3 string references to 'imagepicker_user_search_form'
- imagepicker_admin_images in ./
imagepicker.admin.inc - imagepicker_admin_import in ./
imagepicker.admin.inc - imagepicker_postlet_admin_page in contribs/
imagepicker_postlet/ imagepicker_postlet.module - callback from admin/settings/imagepicker
File
- ./
imagepicker.admin.inc, line 940 - admin settings functions
Code
function imagepicker_user_search_form($form_state, $dir) {
$form['imagepicker_currentuser'] = array(
'#type' => 'textfield',
'#title' => t('Users'),
'#autocomplete_path' => IMAGEPICKER_ADMIN_PATH . '/' . $dir . '/autocomplete',
'#default_value' => '',
'#maxlength' => 30,
'#size' => 25,
);
$form['dir'] = array(
'#type' => 'value',
'#value' => $dir,
);
$form['imagepicker_user_search_submit'] = array(
'#type' => 'submit',
'#value' => t('Go'),
);
return $form;
}