You are here

function _textimage_text_effect_defaults in Textimage 7.3

Default values for the textimage_text effect.

Return value

array Effect default data.

4 calls to _textimage_text_effect_defaults()
textimage_text_effect in effects/textimage_text.inc
Implements 'textimage_text' image effect callback.
textimage_text_effect_dimensions in effects/textimage_text.inc
Implements 'textimage_text' image dimensions callback.
textimage_text_effect_form in effects/textimage_text.inc
Settings for 'textimage_text' image effect.
theme_textimage_text_effect_summary in effects/textimage_text.inc
Renders 'textimage_background' image effect summary.

File

effects/textimage_text.inc, line 13
Implementation of the 'textimage_text' image effect.

Code

function _textimage_text_effect_defaults() {
  $default_font = _textimage_get_variable('default_font');
  return array(
    'font' => array(
      'name' => $default_font['name'],
      'uri' => $default_font['uri'],
      'size' => 16,
      'angle' => 0,
      'color' => '#00000000',
      'stroke_mode' => 'outline',
      'stroke_color' => '#00000000',
      'outline_top' => 0,
      'outline_right' => 0,
      'outline_bottom' => 0,
      'outline_left' => 0,
      'shadow_x_offset' => 1,
      'shadow_y_offset' => 1,
      'shadow_width' => 0,
      'shadow_height' => 0,
    ),
    'layout' => array(
      'padding_top' => 0,
      'padding_right' => 0,
      'padding_bottom' => 0,
      'padding_left' => 0,
      'x_pos' => 'center',
      'y_pos' => 'center',
      'x_offset' => 0,
      'y_offset' => 0,
      'background_color' => NULL,
      'overflow_action' => 'extend',
    ),
    'text' => array(
      'maximum_width' => 0,
      'fixed_width' => FALSE,
      'align' => 'left',
      'line_spacing' => 0,
      'case_format' => '',
    ),
    'text_string' => t('Preview'),
  );
}