You are here

function imagepicker_user_image_form in Image Picker 5.2

Same name and namespace in other branches
  1. 5 imagepicker.module \imagepicker_user_image_form()
  2. 6.2 imagepicker.user.inc \imagepicker_user_image_form()
  3. 7 imagepicker.user.inc \imagepicker_user_image_form()
1 string reference to 'imagepicker_user_image_form'
imagepicker_user_view in ./imagepicker.module

File

./imagepicker.module, line 2042
Enables permitted roles to upload images for insertion into configured nodes.

Code

function imagepicker_user_image_form($img_id) {
  $form['edit'] = array(
    '#type' => 'submit',
    '#value' => t('Edit image'),
  );
  $form['delete'] = array(
    '#type' => 'submit',
    '#value' => t('Delete image'),
  );
  $form['img_id'] = array(
    '#type' => 'hidden',
    '#value' => $img_id,
  );
  return $form;
}