Function Module_admin_themes->get_image_form_fields

Definitions

adminzone/pages/modules/admin_themes.php

  • Get Tempcode for a theme image adding/editing form.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

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 Blank (empty string) N/A N/A The theme image ID
$url URLPATH No No Blank (empty string) N/A N/A The URL to the theme image

Returns

  • A pair: the Tempcode for the visible fields, and the Tempcode for the hidden fields
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get Tempcode for a theme image adding/editing form.
 *
 * @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
 * @return array A pair: the Tempcode for the visible fields, and the Tempcode for the hidden fields
 */

public function get_image_form_fields(string $theme, string $lang, string $id = '', string $url = '') : array