Problem/Motivation

There is a need to store and retrieve some styles settings separately from other properties.

Data model changes

Persistent variable styleswitcher_styles will hold only the following properties of styles:

  • name
  • label
  • path

Other styles settings will be stored separately in styleswitcher_styles_settings variable:

  • weight
  • status
  • is_default

API changes

2 functions styleswitcher_styles_properties() and styleswitcher_styles_settings() have been added to get styles settings and properties from corresponding vars or to retrieve their default values in case vars are not set.

Comments

pingwin4eg’s picture

pingwin4eg’s picture

  • pingwin4eg committed 0494b6c on 7.x-2.x
    Issue #2536482 by pingwin4eg: Separate styles settings
    
pingwin4eg’s picture

Category: Plan » Task
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.