PageRenderTime 38ms CodeModel.GetById 27ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/doc/modules/mod_admin_identity/validator_admin_identity_username_unique.html

https://code.google.com/p/zotonic/
HTML | 47 lines | 39 code | 8 blank | 0 comment | 0 complexity | 64ff2fee28b3733ed354296a9c839a55 MD5 | raw file
 1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 2<html>
 3<head>
 4<title>Module validator_admin_identity_username_unique</title>
 5<link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
 6</head>
 7<body bgcolor="white">
 8<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>
 9<hr>
10
11<h1>Module validator_admin_identity_username_unique</h1>
12<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>Check if an entered username is unique.
13<p>Copyright Š 2010 Marc Worrell</p>
14
15<p><b>Authors:</b> Marc Worrell (<a href="mailto:marc@worrell.nl"><tt>marc@worrell.nl</tt></a>).</p>
16
17<h2><a name="description">Description</a></h2>Check if an entered username is unique
18<h2><a name="index">Function Index</a></h2>
19<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#event-2">event/2</a></td><td>Handle the validation during form entry.</td></tr>
20<tr><td valign="top"><a href="#render_validator-5">render_validator/5</a></td><td></td></tr>
21<tr><td valign="top"><a href="#validate-5">validate/5</a></td><td></td></tr>
22</table>
23
24<h2><a name="functions">Function Details</a></h2>
25
26<h3 class="function"><a name="event-2">event/2</a></h3>
27<div class="spec">
28<p><tt>event(X1::Event, Context) -&gt; Context</tt></p>
29</div><p>Handle the validation during form entry.</p>
30
31<h3 class="function"><a name="render_validator-5">render_validator/5</a></h3>
32<div class="spec">
33<p><tt>render_validator(X1, TriggerId, TargetId, Args, Context) -&gt; any()</tt></p>
34</div>
35
36<h3 class="function"><a name="validate-5">validate/5</a></h3>
37<div class="spec">
38<p><tt>validate(X1::Type, Id::TriggerId, Value, Args, Context) -&gt; {{ok, AcceptedValue}, NewContext} | {{error, Id, Error}, NewContext}</tt>
39<ul class="definitions"><li><tt>Error = invalid | novalue | {script, Script} | novalidator | string()</tt></li>
40</ul></p>
41</div>
42<hr>
43
44<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>
45<p><i>Generated by EDoc, Aug 12 2011, 19:36:11.</i></p>
46</body>
47</html>