Function __global->invert_value

Definitions

sources/config.php

  • Very simple function to invert the meaning of an old hidden option. We often use this when we've promoted a hidden option into a new proper option but inverted the meaning in the process - we use this in the default value generation code, as an in-line aid to preserve existing hidden option settings.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$old ID_TEXT required parameter N/A N/A The old value

Return

  • The inverted value
  • Type: ID_TEXT
  • Set: N/A
  • Range: N/A