Function __global->add_download_licence
Definitions
sources/downloads2.php
- Add a download licence.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $title | SHORT_TEXT | No | No | required parameter | N/A | N/A | The title of the download licence |
| $text | LONG_TEXT | No | No | required parameter | N/A | N/A | The text of the download licence |
Returns
- The ID of the new download licence
- Type: AUTO_LINK
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Add a download licence.
*
* @param SHORT_TEXT $title The title of the download licence
* @param LONG_TEXT $text The text of the download licence
* @return AUTO_LINK The ID of the new download licence
*/
function add_download_licence(string $title, string $text) : int
* Add a download licence.
*
* @param SHORT_TEXT $title The title of the download licence
* @param LONG_TEXT $text The text of the download licence
* @return AUTO_LINK The ID of the new download licence
*/
function add_download_licence(string $title, string $text) : int

