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.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: int

Parameters

Name Type Default Set Range Description
$block ID_TEXT required parameter N/A N/A The name of the block to upgrade

Return

  • 0=No upgrade. -2=Not installed, 1=Upgrade
  • Type: integer
  • Set: N/A
  • Range: N/A