Change
Turn option arrays into function arguments
Issue description
Functions in the Topincs API usually use an options array for some (table) or all (email) parameters. Add these as real PHP arguments to the function. This will save one pair of paranthesis and wil replace the => by a simple colon.
Developer comments
It will read:
[%echo table(rows: $rows, columns: $columns, empty: $none, sortable: true);%]
Or:
[%email(to: "you@topincs.com", subject: "Hello", text: $text);%]
|
Work sessions3
Start |
2022-02-21T08:08:14
|
End |
2022-02-21T10:01:35
|
Participant |
Robert Cerny
|
Start |
2022-02-21T10:01:50
|
End |
2022-02-21T12:10:18
|
Participant |
Robert Cerny
|
Start |
2022-02-21T16:05:44
|
End |
2022-02-21T16:25:52
|
Participant |
Robert Cerny
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.