Function Module_admin_cns_customprofilefields->get_form_fields
Definitions
adminzone/pages/modules/admin_cns_customprofilefields.php
- Get Tempcode for adding/editing form.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$name | SHORT_TEXT | Blank (empty string) | N/A | N/A | The name of the Custom Profile Field |
$description | LONG_TEXT | Blank (empty string) | N/A | N/A | The description of the field |
$default | LONG_TEXT | Blank (empty string) | N/A | N/A | The default value of the field |
$public_view | BINARY | 1 | N/A | N/A | Whether the field is publicly viewable |
$owner_view | BINARY | 1 | N/A | N/A | Whether the field may be viewed by the owner |
$owner_set | BINARY | 1 | N/A | N/A | Whether the owner may set the value of the field |
$encrypted | BINARY | 0 | N/A | N/A | Whether the field is encrypted |
$type | ID_TEXT | long_text | N/A | N/A | The type of the field |
$required | BINARY | 0 | N/A | N/A | Whether the field is required to be filled in |
$show_on_join_form | BINARY | 0 | N/A | N/A | Whether the field is to be shown on the join form |
$show_in_posts | BINARY | 0 | N/A | N/A | Whether the field is shown in posts |
$show_in_post_previews | BINARY | 0 | N/A | N/A | Whether the field is shown in post previews |
$order | ?integer | Null | N/A | N/A | The order the field is given relative to the order of the other Custom Profile Fields (null: last) |
$only_group | LONG_TEXT | Blank (empty string) | N/A | N/A | The usergroups that this field is confined to (comma-separated list) |
$locked | BINARY | 0 | N/A | N/A | Whether the field is locked, e.g. cannot be deleted |
$options | SHORT_TEXT | Blank (empty string) | N/A | N/A | Field options |
$include_in_main_search | BINARY | 0 | N/A | N/A | Whether to include in main keyword search |
$allow_template_search | BINARY | 0 | N/A | N/A | Whether to allow template search |
$icon | ID_TEXT | Blank (empty string) | N/A | N/A | An icon to show the CPF with on the member profiles |
$section | ID_TEXT | Blank (empty string) | N/A | N/A | A section to show with on the member-links part of member profiles |
$tempcode | LONG_TEXT | Blank (empty string) | N/A | N/A | This is Tempcode that is used for displaying the field. See the DESCRIPTION_CPF_CODE language string. |
$autofill_type | ID_TEXT | Blank (empty string) | N/A | N/A | Autofill field name from https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill-field |
$autofill_hint | ID_TEXT | Blank (empty string) | N/A | N/A | Autofill hint: '' or 'shipping' or 'billing' |
Return
- A pair: The input fields, Hidden fields
- Type: array
- Set: N/A
- Range: N/A