Function __global->actual_copy_theme

Definitions

sources/themes3.php

  • Copy a theme.
  • 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 original theme name
$to ID_TEXT No No required parameter N/A N/A The copy's theme name
$theme_images_to_skip array No No [] N/A N/A List of theme images to skip (presumably as they'll be created separately)
$css_files_to_skip array No No [] N/A N/A List of CSS files to skip (presumably as they'll be created separately)
$include_themeini boolean No No True N/A N/A Whether to create theme.ini

Preview

Code (PHP)

/**
 * Copy a theme.
 *
 * @param  ID_TEXT $theme The original theme name
 * @param  ID_TEXT $to The copy's theme name
 * @param  array $theme_images_to_skip List of theme images to skip (presumably as they'll be created separately)
 * @param  array $css_files_to_skip List of CSS files to skip (presumably as they'll be created separately)
 * @param  boolean $include_themeini Whether to create theme.ini
 */

function actual_copy_theme(string $theme, string $to, array $theme_images_to_skip = [], array $css_files_to_skip = [], bool $include_themeini = true)