Module m_modules

Model for the zotonic modules.

Copyright 2010 Marc Worrell Date: 2010-05-05

Behaviours: gen_model.

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

Description

Model for the zotonic modules. List all modules, enabled or disabled.

Function Index

all/1Return the list of modules.
m_find_value/3Fetch the value for the key from a model source.
m_to_list/2Transform a m_config value to a list, used for template loops.
m_value/2Transform a model value so that it can be formatted or piped through filters.

Function Details

all/1

all(Context) -> any()

Return the list of modules

m_find_value/3

m_find_value(Module::Key, M::Source, Context) -> term()

Fetch the value for the key from a model source

m_to_list/2

m_to_list(M::Source, Context) -> List

Transform a m_config value to a list, used for template loops

m_value/2

m_value(M::Source, Context) -> term()

Transform a model value so that it can be formatted or piped through filters


Generated by EDoc, Nov 26 2014, 15:39:35.