updated profile_options and example for meta HTML code
This commit is contained in:
parent
da633b676a
commit
8a08179d25
|
@ -1,8 +1,8 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=ISO-8859-15"
|
||||
http-equiv="content-type">
|
||||
<meta http-equiv="content-type"
|
||||
content="text/html; charset=ISO-8859-15">
|
||||
<title>Module specification</title>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -27,8 +27,8 @@ allowed to call other static functions.<br>
|
|||
<br>
|
||||
<h3>2.1.1. Constructor</h3>
|
||||
<br>
|
||||
<table style="text-align: left; width: 300px; height: 30px;" border="0"
|
||||
cellspacing="2" cellpadding="2">
|
||||
<table cellpadding="2" cellspacing="2" border="0"
|
||||
style="text-align: left; width: 300px; height: 30px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td
|
||||
|
@ -47,8 +47,8 @@ several helper functions.<br>
|
|||
<br>
|
||||
<h3>2.1.2. get_alias</h3>
|
||||
<br>
|
||||
<table style="text-align: left; width: 300px;" border="0"
|
||||
cellspacing="2" cellpadding="2">
|
||||
<table cellpadding="2" cellspacing="2" border="0"
|
||||
style="text-align: left; width: 300px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td
|
||||
|
@ -68,8 +68,8 @@ a-z, A-Z, 0-9, -, _ and spaces.<br>
|
|||
<br>
|
||||
<h3>2.1.3. get_dependencies</h3>
|
||||
<br>
|
||||
<table style="text-align: left; width: 300px; font-weight: bold;"
|
||||
border="0" cellspacing="2" cellpadding="2">
|
||||
<table cellpadding="2" cellspacing="2" border="0"
|
||||
style="text-align: left; width: 300px; font-weight: bold;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td
|
||||
|
@ -102,8 +102,8 @@ your module depends on one of these modules.<br>
|
|||
<br>
|
||||
<h3>2.1.4. module_ready</h3>
|
||||
<br>
|
||||
<table style="text-align: left; width: 300px; height: 30px;" border="0"
|
||||
cellspacing="2" cellpadding="2">
|
||||
<table cellpadding="2" cellspacing="2" border="0"
|
||||
style="text-align: left; width: 300px; height: 30px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td
|
||||
|
@ -122,8 +122,8 @@ your module accepts input, otherwise <span style="font-weight: bold;">false</spa
|
|||
<br>
|
||||
<h3>2.1.5. module_complete</h3>
|
||||
<br>
|
||||
<table style="text-align: left; width: 300px; height: 30px;" border="0"
|
||||
cellspacing="2" cellpadding="2">
|
||||
<table cellpadding="2" cellspacing="2" border="0"
|
||||
style="text-align: left; width: 300px; height: 30px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td
|
||||
|
@ -143,8 +143,8 @@ page will be displayed.<br>
|
|||
<br>
|
||||
<h3>2.1.6. is_base_module</h3>
|
||||
<br>
|
||||
<table style="text-align: left; width: 300px; height: 30px;" border="0"
|
||||
cellspacing="2" cellpadding="2">
|
||||
<table cellpadding="2" cellspacing="2" border="0"
|
||||
style="text-align: left; width: 300px; height: 30px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td
|
||||
|
@ -168,8 +168,8 @@ quota module is no base module as it needs posixAccount.<br>
|
|||
<br>
|
||||
<h3>2.1.7. get_ldap_filter</h3>
|
||||
<br>
|
||||
<table style="text-align: left; width: 300px; height: 30px;" border="0"
|
||||
cellspacing="2" cellpadding="2">
|
||||
<table cellpadding="2" cellspacing="2" border="0"
|
||||
style="text-align: left; width: 300px; height: 30px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td
|
||||
|
@ -197,8 +197,8 @@ is only used for base modules.</span><br>
|
|||
<br>
|
||||
<h3>2.1.8. get_profileOptions</h3>
|
||||
<br>
|
||||
<table style="text-align: left; width: 300px; height: 30px;" border="0"
|
||||
cellspacing="2" cellpadding="2">
|
||||
<table cellpadding="2" cellspacing="2" border="0"
|
||||
style="text-align: left; width: 300px; height: 30px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td
|
||||
|
@ -209,11 +209,15 @@ is only used for base modules.</span><br>
|
|||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
This function defines what attributes will be used in the account
|
||||
profiles and their appearance in the profile editor.<br>
|
||||
<br>
|
||||
<span style="font-weight: bold;">$scope</span> is the account type
|
||||
("user", "group", "host" at this time).<br>
|
||||
The return value is an array that contains <span
|
||||
style="font-weight: bold;">meta HTML code</span>.<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
The type "fieldset" is not allowed here.<br>
|
||||
<br>
|
||||
<br>
|
||||
<h2>3. Meta HTML code</h2>
|
||||
|
@ -318,8 +322,22 @@ rowspan attribute for td elements.</li>
|
|||
left/center/right/justify Like the HTML align attribute.</li>
|
||||
</ul>
|
||||
<br>
|
||||
<span style="font-weight: bold;">Example:</span><span
|
||||
style="font-family: monospace;"><br>
|
||||
<br>
|
||||
<br>
|
||||
</span><code>array(<br>
|
||||
array(<br>
|
||||
array("kind" => "text", "text" => "This is an
|
||||
example", "td" => array("colspan" => 3))<br>
|
||||
), <br>
|
||||
array(<br>
|
||||
array("kind" => "text", "text" => "Input:"),<br>
|
||||
array("kind" => "input", "name" => "myinput",
|
||||
"type" => "text"),<br>
|
||||
array("kind" => "help", "value" => "42")<br>
|
||||
)<br>
|
||||
)<br>
|
||||
</code><br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
|
Loading…
Reference in New Issue