Function __global->edit_award_type
Definitions
sources/awards2.php
- Edit an award type.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $id | AUTO_LINK | No | No | required parameter | N/A | N/A | The ID |
| $title | SHORT_TEXT | No | No | required parameter | N/A | N/A | The title |
| $description | LONG_TEXT | No | No | required parameter | N/A | N/A | The description |
| $points | integer | No | No | required parameter | N/A | N/A | How many points are given to the awardee |
| $content_type | ID_TEXT | No | No | required parameter | N/A | N/A | The content type the award type is for |
| $show_awardee | BINARY | No | No | required parameter | N/A | N/A | Whether to show the awardee when displaying this award |
| $update_interval_hours | integer | No | No | required parameter | N/A | N/A | The approximate time in hours between awards (e.g. 168 for a week) |
Preview
Code (PHP)
/**
* Edit an award type.
*
* @param AUTO_LINK $id The ID
* @param SHORT_TEXT $title The title
* @param LONG_TEXT $description The description
* @param integer $points How many points are given to the awardee
* @param ID_TEXT $content_type The content type the award type is for
* @param BINARY $show_awardee Whether to show the awardee when displaying this award
* @param integer $update_interval_hours The approximate time in hours between awards (e.g. 168 for a week)
*/
function edit_award_type(int $id, string $title, string $description, int $points, string $content_type, int $show_awardee, int $update_interval_hours)
* Edit an award type.
*
* @param AUTO_LINK $id The ID
* @param SHORT_TEXT $title The title
* @param LONG_TEXT $description The description
* @param integer $points How many points are given to the awardee
* @param ID_TEXT $content_type The content type the award type is for
* @param BINARY $show_awardee Whether to show the awardee when displaying this award
* @param integer $update_interval_hours The approximate time in hours between awards (e.g. 168 for a week)
*/
function edit_award_type(int $id, string $title, string $description, int $points, string $content_type, int $show_awardee, int $update_interval_hours)

