Function __global->post_param_theme_img_code

Definitions

sources/themes2.php

  • A theme image has been passed through by POST, either as a file (a new theme image), or as a reference to an existing one. Get the image code from the POST data.Note that post_param_image is a more comprehensive function, if you accept other types of inputs too.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$type ID_TEXT required parameter N/A N/A The type of theme image
$required boolean False N/A N/A Whether a code is required
$field_file ID_TEXT file N/A N/A Form field for uploading
$field_choose ID_TEXT theme_img_code N/A N/A Form field for choosing
$db ?object Null N/A N/A Database connector (null: site database)
$upload_to ?PATH Null N/A N/A Where to upload the theme images to (null: something sensible)

Return

  • The (possibly randomised) theme image code
  • Type: ID_TEXT
  • Set: N/A
  • Range: N/A