You are here

function beautytips_manager_style_mapping in BeautyTips 7.2

Same name and namespace in other branches
  1. 8 beautytips_manager/beautytips_manager.module \beautytips_manager_style_mapping()

Contains an array of beautytip style options for mapping the names between php and javascript.

3 calls to beautytips_manager_style_mapping()
beautytips_manager_custom_styles_form in ./beautytips_manager.admin.inc
Form for editing a custom beautytip style.
beautytips_manager_custom_styles_form_submit in ./beautytips_manager.admin.inc
Submission callback on beautytips_manager_custom_styles_form.
beautytips_manager_define_beautytips_styles in ./beautytips_manager.module
Implements hook_define_beautytips_styles().

File

./beautytips_manager.module, line 289
Code related to defining and displaying custom beautytips and styles.

Code

function beautytips_manager_style_mapping() {
  return [
    'options' => [
      'fill' => 'fill',
      'strokeWidth' => 'stroke_width',
      'strokeStyle' => 'stroke_style',
      'width' => 'width',
      'padding' => 'padding',
      'cornerRadius' => 'corner_radius',
      'spikeGirth' => 'spike_girth',
      'spikeLength' => 'spike_length',
      'shadow' => 'shadow',
      'shadowBlur' => 'shadow_blur',
      'shadowColor' => 'shadow_color',
      'cssClass' => 'css_class',
    ],
    'css_options' => [
      'color' => 'css_color',
      'fontFamily' => 'css_font_family',
      'fontWeight' => 'css_font_weight',
      'fontSize' => 'css_font_size',
    ],
  ];
}