/doc/core/m_modules.html
https://code.google.com/p/zotonic/ · HTML · 54 lines · 45 code · 9 blank · 0 comment · 0 complexity · 52f80e60e930632de7d22f4edc8b446a MD5 · raw file
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <title>Module m_modules</title>
- <link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
- </head>
- <body bgcolor="white">
- <div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
- <hr>
- <h1>Module m_modules</h1>
- <ul class="index"><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>Model for the zotonic modules.
- <p>Copyright 2010 Marc Worrell
- Date: 2010-05-05
- </p>
- <p><b>Behaviours:</b> <a href="gen_model.html"><tt>gen_model</tt></a>.</p>
- <p><b>Authors:</b> Marc Worrell (<a href="mailto:marc@worrell.nl"><tt>marc@worrell.nl</tt></a>).</p>
- <h2><a name="description">Description</a></h2>Model for the zotonic modules. List all modules, enabled or disabled.
- <h2><a name="index">Function Index</a></h2>
- <table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#all-1">all/1</a></td><td>Return the list of modules.</td></tr>
- <tr><td valign="top"><a href="#m_find_value-3">m_find_value/3</a></td><td>Fetch the value for the key from a model source.</td></tr>
- <tr><td valign="top"><a href="#m_to_list-2">m_to_list/2</a></td><td>Transform a m_config value to a list, used for template loops.</td></tr>
- <tr><td valign="top"><a href="#m_value-2">m_value/2</a></td><td>Transform a model value so that it can be formatted or piped through filters.</td></tr>
- </table>
- <h2><a name="functions">Function Details</a></h2>
- <h3 class="function"><a name="all-1">all/1</a></h3>
- <div class="spec">
- <p><tt>all(Context) -> any()</tt></p>
- </div><p>Return the list of modules</p>
- <h3 class="function"><a name="m_find_value-3">m_find_value/3</a></h3>
- <div class="spec">
- <p><tt>m_find_value(Module::Key, M::Source, Context) -> term()</tt></p>
- </div><p>Fetch the value for the key from a model source</p>
- <h3 class="function"><a name="m_to_list-2">m_to_list/2</a></h3>
- <div class="spec">
- <p><tt>m_to_list(M::Source, Context) -> List</tt></p>
- </div><p>Transform a m_config value to a list, used for template loops</p>
- <h3 class="function"><a name="m_value-2">m_value/2</a></h3>
- <div class="spec">
- <p><tt>m_value(M::Source, Context) -> term()</tt></p>
- </div><p>Transform a model value so that it can be formatted or piped through filters</p>
- <hr>
- <div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
- <p><i>Generated by EDoc, Aug 12 2011, 20:01:40.</i></p>
- </body>
- </html>