function imagepicker_edit_form in Image Picker 5
Same name and namespace in other branches
- 5.2 imagepicker.module \imagepicker_edit_form()
- 6.2 imagepicker.edit.inc \imagepicker_edit_form()
- 7 imagepicker.edit.inc \imagepicker_edit_form()
1 string reference to 'imagepicker_edit_form'
File
- ./
imagepicker.module, line 605 - Enables permitted roles to upload images for insertion into configured nodes.
Code
function imagepicker_edit_form(&$img, $account = FALSE) {
$form['title'] = array(
'#type' => 'textfield',
'#title' => t('Title'),
'#description' => t('Edit title of your image'),
'#default_value' => htmlspecialchars_decode($img['img_title']),
'#prefix' => '<div id="imgp_edit_form">',
);
$form['description'] = array(
'#type' => 'textarea',
'#title' => t('Description'),
'#rows' => 2,
'#cols' => 80,
'#description' => t('Edit description of your image'),
'#default_value' => htmlspecialchars_decode($img['img_description']),
'#suffix' => '</div>',
);
if ($account) {
$form['account'] = array(
'#type' => 'hidden',
'#value' => 1,
);
}
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
'#prefix' => '<div id="imgp_controls">',
);
$form['cancel'] = array(
'#type' => 'submit',
'#value' => t('Cancel'),
'#suffix' => '</div>',
);
return $form;
}