function imagepicker_user_search_form in Image Picker 7
Same name and namespace in other branches
- 5.2 imagepicker.module \imagepicker_user_search_form()
- 6.2 imagepicker.admin.inc \imagepicker_user_search_form()
Function to display the imagepicker user search form
Return value
Returns the form.
2 string references to 'imagepicker_user_search_form'
File
- ./
imagepicker.admin.inc, line 1126 - @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function imagepicker_user_search_form($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;
}