Function Module_cms_galleries_alt->get_form_fields
Definitions
cms/pages/modules/cms_galleries.php
- Get Tempcode for a video adding/editing form.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$id | ?AUTO_LINK | Null | N/A | N/A | The ID of the video (null: new) |
$title | SHORT_TEXT | Blank (empty string) | N/A | N/A | The title |
$cat | ID_TEXT | Blank (empty string) | N/A | N/A | The gallery |
$description | LONG_TEXT | Blank (empty string) | N/A | N/A | The video description |
$url | URLPATH | Blank (empty string) | N/A | N/A | The URL to the video file (blank: not yet added) |
$thumb_url | URLPATH | Blank (empty string) | N/A | N/A | The URL to the thumbnail |
$validated | BINARY | 1 | N/A | N/A | Video validation status |
$allow_rating | ?BINARY | Null | N/A | N/A | Whether rating is allowed (null: decide statistically, based on existing choices) |
$allow_comments | ?SHORT_INTEGER | Null | N/A | N/A | Whether comments are allowed (0=no, 1=yes, 2=review style) (null: decide statistically, based on existing choices) |
$allow_trackbacks | ?BINARY | Null | N/A | N/A | Whether trackbacks are allowed (null: decide statistically, based on existing choices) |
$notes | LONG_TEXT | Blank (empty string) | N/A | N/A | Notes for the video |
$video_length | ?integer | Null | N/A | N/A | The length of the video (null: not yet added, so not yet known) |
$video_width | ?integer | Null | N/A | N/A | The width of the video (null: not yet added, so not yet known) |
$video_height | ?integer | Null | N/A | N/A | The height of the video (null: not yet added, so not yet known) |
$closed_captions_url | URLPATH | Blank (empty string) | N/A | N/A | The URL to the closed captions for this video |
$regions | array | [] | N/A | N/A | The regions (empty: not region-limited) |
Return
- A pair: The input fields, Hidden fields
- Type: array
- Set: N/A
- Range: N/A