Function __global->upgrade_block
Definitions
sources/zones2.php
- Upgrades a block to the latest version available on your installation. [b]This function can only upgrade to the latest version put into the block directory.[/b] You should not need to use this function.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $block | ID_TEXT | No | No | required parameter | N/A | N/A | The name of the block to upgrade |
Returns
- 0=No upgrade. -2=Not installed, 1=Upgrade
- Type: integer
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Upgrades a block to the latest version available on your installation. [b]This function can only upgrade to the latest version put into the block directory.[/b] You should not need to use this function.
*
* @param ID_TEXT $block The name of the block to upgrade
* @return integer 0=No upgrade. -2=Not installed, 1=Upgrade
*/
function upgrade_block(string $block) : int
* Upgrades a block to the latest version available on your installation. [b]This function can only upgrade to the latest version put into the block directory.[/b] You should not need to use this function.
*
* @param ID_TEXT $block The name of the block to upgrade
* @return integer 0=No upgrade. -2=Not installed, 1=Upgrade
*/
function upgrade_block(string $block) : int

