Copyright © 2021 Marc Worrell
Behaviours: zotonic_model.
Authors: Marc Worrell (marc@worrell.nl).
get_settings/2 | |
m_get/3 | Fetch the value for the key from a model source. |
sanitize/1 | |
save_settings/3 |
get_settings(Id::m_rsc:resource(), Context::z:context()) -> {ok, map()}
m_get(Rest::list(), Msg::zotonic_model:opt_msg(), Context::z:context()) -> zotonic_model:return()
Fetch the value for the key from a model source
sanitize(Settings::map()) -> map()
save_settings(Id::m_rsc:resource(), Settings::undefined | proplists:proplist() | map(), Context::z:context()) -> {ok, m_rsc:resource_id()} | {error, term()}
Generated by EDoc