You are here

function imagepicker_admin_image_form in Image Picker 7

Same name and namespace in other branches
  1. 5.2 imagepicker.module \imagepicker_admin_image_form()
  2. 6.2 imagepicker.admin.inc \imagepicker_admin_image_form()

Function to display the image edit/delete form

Return value

Returns the form.

1 string reference to 'imagepicker_admin_image_form'
imagepicker_adminview in ./imagepicker.admin.inc

File

./imagepicker.admin.inc, line 1087
@author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function imagepicker_admin_image_form($form, &$form_state, $img_id, $account = FALSE) {
  if ($account) {
    $form['account'] = array(
      '#type' => 'value',
      '#value' => $account->uid,
    );
  }
  $form['img_id'] = array(
    '#type' => 'value',
    '#value' => $img_id,
  );
  $form['edit'] = array(
    '#type' => 'submit',
    '#value' => t('Edit image'),
  );
  $form['delete'] = array(
    '#type' => 'submit',
    '#value' => t('Delete image'),
  );
  return $form;
}