Function __global->install_predefined_content
Definitions
sources/content2.php
- Install/uninstall predefined content.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $addon | string | No | No | required parameter | N/A | N/A | Addon to do for |
| $content | ?array | No | No | Null | N/A | N/A | A map of predefined content labels to install, codename to installation state (null: install all) |
Preview
Code (PHP)
/**
* Install/uninstall predefined content.
*
* @param string $addon Addon to do for
* @param ?array $content A map of predefined content labels to install, codename to installation state (null: install all)
*/
function install_predefined_content(string $addon, ?array $content = null)
* Install/uninstall predefined content.
*
* @param string $addon Addon to do for
* @param ?array $content A map of predefined content labels to install, codename to installation state (null: install all)
*/
function install_predefined_content(string $addon, ?array $content = null)

