You are here

function imce_thumbnail_form in IMCE 6

Same name and namespace in other branches
  1. 6.2 inc/imce.admin.inc \imce_thumbnail_form()
  2. 7 inc/imce.admin.inc \imce_thumbnail_form()

thumbnail settings form

1 call to imce_thumbnail_form()
imce_profile_form in inc/admin.inc
Profile form.

File

inc/admin.inc, line 389

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;
}