function imagecache_generate_action_form in ImageCache 6.2
Form for configuring the generate action.
See also
File
- ./imagecache.module, line 1302 
- Dynamic image resizer and image cacher.
Code
function imagecache_generate_action_form($context) {
  $options = array();
  foreach (imagecache_presets() as $preset) {
    $options[$preset['presetname']] = $preset['presetname'];
  }
  $form['presets'] = array(
    '#type' => 'checkboxes',
    '#options' => $options,
    '#description' => t('Select which imagecache presets will be effected'),
    '#required' => TRUE,
    '#default_value' => isset($context['imagecache_presets']) ? $context['imagecache_presets'] : array(),
  );
  // Filter out false checkboxes: http://drupal.org/node/61760#comment-402631
  $form['array_filter'] = array(
    '#type' => 'value',
    '#value' => TRUE,
  );
  return $form;
}