Module m_image_edit

Model for fetching the image edit settings of a page.

Copyright © 2021 Marc Worrell

Behaviours: zotonic_model.

Authors: Marc Worrell (marc@worrell.nl).

Description

Model for fetching the image edit settings of a page.

Function Index

get_settings/2
m_get/3Fetch the value for the key from a model source.
sanitize/1
save_settings/3

Function Details

get_settings/2

get_settings(Id::m_rsc:resource(), Context::z:context()) -> {ok, map()}

m_get/3

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/1

sanitize(Settings::map()) -> map()

save_settings/3

save_settings(Id::m_rsc:resource(), Settings::undefined | proplists:proplist() | map(), Context::z:context()) -> {ok, m_rsc:resource_id()} | {error, term()}


Generated by EDoc