Function __global->actual_add_theme_image

Definitions

sources/themes3.php

  • Add a theme image.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$theme ID_TEXT No No required parameter N/A N/A The theme the theme image is in
$lang LANGUAGE_NAME No No required parameter N/A N/A The language the theme image is for
$id SHORT_TEXT No No required parameter N/A N/A The theme image ID
$url URLPATH No No required parameter N/A N/A The URL to the theme image
$fail_ok boolean No No False N/A N/A Whether to allow failure without bombing out

Preview

Code (PHP)

/**
 * Add a theme image.
 *
 * @param  ID_TEXT $theme The theme the theme image is in
 * @param  LANGUAGE_NAME $lang The language the theme image is for
 * @param  SHORT_TEXT $id The theme image ID
 * @param  URLPATH $url The URL to the theme image
 * @param  boolean $fail_ok Whether to allow failure without bombing out
 */

function actual_add_theme_image(string $theme, string $lang, string $id, string $url, bool $fail_ok = false)