Skip to contents

Converts a markermd_rule S7 object to the list format used by the existing rules module for backward compatibility.

Converts an S7 markermd_rule object to the list format expected by the rules module. This is used when loading existing templates in the template interface.

Usage

rule_to_list(rule, rule_id)

rule_to_list(rule, rule_id)

Arguments

rule

S7 markermd_rule object

rule_id

Integer. ID to assign to the rule in list format

Value

Named list with rule data

List with rule data formatted for the rules module