function imagepicker_group_images_form in Image Picker 5.2
Same name and namespace in other branches
- 5 imagepicker.module \imagepicker_group_images_form()
- 6.2 imagepicker.functions.inc \imagepicker_group_images_form()
- 7 imagepicker.functions.inc \imagepicker_group_images_form()
insert a form into the edit image page to allow the image to be associated with a group
3 string references to 'imagepicker_group_images_form'
File
- ./
imagepicker.module, line 2919 - Enables permitted roles to upload images for insertion into configured nodes.
Code
function imagepicker_group_images_form($img_id, $account = FALSE) {
$grouplist = imagepicker_get_groups($account);
$enabledlist = imagepicker_get_image_groups($img_id);
$form['group_images'] = array(
'#type' => 'fieldset',
'#title' => t('Groups'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['group_images']['grouplist'] = array(
'#type' => 'checkboxes',
'#default_value' => $enabledlist,
'#options' => $grouplist,
'#title' => t('Your Groups'),
);
$form['group_images']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save group settings'),
);
$form['img_id'] = array(
'#type' => 'hidden',
'#value' => $img_id,
);
return $form;
}