function imce_thumbnail_form in IMCE 6.2
Same name and namespace in other branches
- 6 inc/admin.inc \imce_thumbnail_form()
- 7 inc/imce.admin.inc \imce_thumbnail_form()
thumbnail settings form
1 call to imce_thumbnail_form()
- imce_profile_form in inc/
imce.admin.inc - Profile form.
File
- inc/
imce.admin.inc, line 432 - Serves administration pages of IMCE.
Code
function imce_thumbnail_form($thumb = array()) {
if (empty($thumb)) {
$thumb = array(
'name' => '',
'dimensions' => '',
'prefix' => '',
'suffix' => '',
);
}
$form['name'] = array(
'#type' => 'textfield',
'#default_value' => $thumb['name'],
'#size' => 20,
);
$form['dimensions'] = array(
'#type' => 'textfield',
'#default_value' => $thumb['dimensions'],
'#size' => 20,
);
$form['prefix'] = array(
'#type' => 'textfield',
'#default_value' => $thumb['prefix'],
'#size' => 20,
);
$form['suffix'] = array(
'#type' => 'textfield',
'#default_value' => $thumb['suffix'],
'#size' => 20,
);
return $form;
}