Function Module_cms_news->get_form_fields
Definitions
cms/pages/modules/cms_news.php
- Get Tempcode for a news 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 news ID (null: new) |
$main_news_category | ?AUTO_LINK | Null | N/A | N/A | The primary category for the news (null: personal) |
$news_category | ?array | Null | N/A | N/A | A list of categories the news is in (null: not known) |
$title | SHORT_TEXT | Blank (empty string) | N/A | N/A | The news title |
$news | LONG_TEXT | Blank (empty string) | N/A | N/A | The news summary |
$author | SHORT_TEXT | Blank (empty string) | N/A | N/A | The name of the author |
$validated | BINARY | 1 | N/A | N/A | Whether the news is validated |
$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) |
$send_trackbacks | BINARY | 1 | N/A | N/A | Whether to show the "send trackback" field |
$notes | LONG_TEXT | Blank (empty string) | N/A | N/A | Notes for the video |
$image | URLPATH | Blank (empty string) | N/A | N/A | URL to the image for the news entry (blank: use cat image) |
$scheduled | ?array | Null | N/A | N/A | Scheduled go-live time (null: N/A) |
$regions | array | [] | N/A | N/A | The regions (empty: not region-limited) |
Return
- A tuple: The input fields, Hidden fields, ...
- Type: array
- Set: N/A
- Range: N/A