function textimage_gif_transparency_effect_form in Textimage 7.3
Settings for 'textimage_gif_transparency' image effect.
Implements hook_form().
Parameters
array $data: array of settings for this action
Return value
array a form definition
1 string reference to 'textimage_gif_transparency_effect_form'
- textimage_image_effect_info in ./
textimage.module - Implements hook_image_effect_info().
File
- effects/
textimage_gif_transparency.inc, line 30 - Implementation of the 'textimage_gif_transparency' image effect.
Code
function textimage_gif_transparency_effect_form($data) {
// Merge input data with effect defaults.
$data = drupal_array_merge_deep(_textimage_gif_transparency_effect_defaults(), $data);
$form = array();
// GIF transparency color.
$form['gif_transparency_color'] = array(
'#type' => 'textimage_color',
'#title' => t('Color'),
'#description' => t('Select the color to be used for GIF transparency. <b>Note:</b> this will only be used by Textimage effects.'),
'#allow_transparent' => FALSE,
'#allow_opacity' => FALSE,
'#default_value' => $data['gif_transparency_color'],
);
return $form;
}