You are here

function beautytips_manager_save_custom_style in BeautyTips 7.2

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

Save a singular beautytip style.

1 call to beautytips_manager_save_custom_style()
beautytips_manager_custom_styles_form_submit in ./beautytips_manager.admin.inc
Submission callback on beautytips_manager_custom_styles_form.

File

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

Code

function beautytips_manager_save_custom_style($style) {
  $style = (object) $style;
  if (isset($style->id) && $style->id) {
    drupal_write_record('beautytips_custom_styles', $style, 'id');
  }
  else {
    drupal_write_record('beautytips_custom_styles', $style);
  }
  return $style;
}