function canvasactions_source2canvas_form in ImageCache Actions 6.2
Same name and namespace in other branches
- 8 canvasactions/canvasactions.inc \canvasactions_source2canvas_form()
- 5.3 canvasactions.inc \canvasactions_source2canvas_form()
- 5.2 canvasactions.inc \canvasactions_source2canvas_form()
- 6 canvasactions.inc \canvasactions_source2canvas_form()
- 7 canvasactions/canvasactions.inc \canvasactions_source2canvas_form()
Place the source 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/
canvasactions.inc, line 655
Code
function canvasactions_source2canvas_form($action) {
$defaults = array(
'xpos' => '',
'ypos' => '',
'alpha' => '100',
'path' => '',
);
$action = array_merge($defaults, (array) $action);
$form = imagecache_actions_pos_form($action);
$form['alpha'] = array(
'#type' => 'textfield',
'#title' => t('opacity'),
'#default_value' => $action['alpha'],
'#size' => 6,
'#description' => t('Opacity: 0-100.'),
);
return $form;
}