Function __global->addon_installed

Definitions

sources/global3.php

  • Check to see if an addon is installed.Will also include check database tables for addons that are hook-based, just in case filesystem and database got out of sync.For addons with no addon_registry hook can also check the database (if requested via $check_hookless).
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: bool

Parameters

Name Type Default Set Range Description
$addon_name ID_TEXT required parameter N/A N/A The addon name
$check_hookless boolean False N/A N/A Whether to check addons with no addon_registry hook (it's very rare to need this)
$deep_scan boolean True N/A N/A Do a deep scan of the database to see if the addon is fully installed
$disabled_scan boolean True N/A N/A Consider whether the addon is set as disabled
$force_custom boolean False N/A N/A Whether to forcefully check custom even if in safe mode

Return

  • Whether it is
  • Type: boolean
  • Set: N/A
  • Range: N/A