function canvasactions_file2canvas_form in ImageCache Actions 5.2
Same name and namespace in other branches
- 8 canvasactions/canvasactions.inc \canvasactions_file2canvas_form()
- 5.3 canvasactions.inc \canvasactions_file2canvas_form()
- 6.2 canvasactions/canvasactions.inc \canvasactions_file2canvas_form()
- 6 canvasactions.inc \canvasactions_file2canvas_form()
- 7 canvasactions/canvasactions.inc \canvasactions_file2canvas_form()
Place a given image on top of the current canvas
Implementation of imagecache_hook_form()
Parameters
$action array of settings for this action:
Return value
a form definition
File
- ./
canvasactions.inc, line 285
Code
function canvasactions_file2canvas_form($action) {
$form = array(
'help' => array(
'#type' => 'markup',
'#value' => t('Note that this action may require a lot of processing as transparency blends require that every pixel be re-calculated for each image. This can be a server-intensive process and generate a bit of load time.'),
),
'xpos' => array(
'#type' => 'textfield',
'#title' => t('X offset'),
'#default_value' => $action['xpos'],
'#size' => 6,
'#description' => t('Enter an offset in pixels or use a keyword: <em>left</em>, <em>center</em>, or <em>right</em>.'),
),
'ypos' => array(
'#type' => 'textfield',
'#title' => t('Y offset'),
'#default_value' => $action['ypos'],
'#size' => 6,
'#description' => t('Enter an offset in pixels or use a keyword: <em>top</em>, <em>center</em>, or <em>bottom</em>.'),
),
'alpha' => array(
'#type' => 'textfield',
'#title' => t('opacity'),
'#default_value' => $action['alpha'],
'#size' => 6,
'#description' => t('Opacity: 0-100.'),
),
'path' => array(
'#type' => 'textfield',
'#title' => t('file name'),
'#default_value' => $action['path'],
'#description' => t('File may be in the "files/" folder, or relative to the Drupal siteroot.'),
),
);
return $form;
}