Problem/Motivation

There is a need to clean up the functionality providing default styles and their settings.

Proposed resolution

  • Move the setting of default style weight to the later phase of getting style settings.
  • Provide a single default value for any style weight (0).
  • Provide styles ordering with a new function to sort by weight and by their index number.

API changes

Function _styleswitcher_get_styles() drops 'weight' property from result list of styles.
Function styleswitcher_sort() has been added to sort styles by weight and index.

Comments

pingwin4eg’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new5.66 KB
pingwin4eg’s picture

  • pingwin4eg committed da2a527 on 7.x-2.x
    Issue #2536504 by pingwin4eg: Default style weight
    
pingwin4eg’s picture

Category: Plan » Task
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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