Function Module_cms_calendar_cat->get_form_fields

Definitions

cms/pages/modules/cms_calendar.php

  • Get Tempcode for a Post Template 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
$id ?AUTO_LINK No No Null N/A N/A ID of category (null: new category)
$title SHORT_TEXT No No Blank (empty string) N/A N/A The title
$logo SHORT_TEXT No No Blank (empty string) N/A N/A The theme image code
$external_feed URLPATH No No Blank (empty string) N/A N/A URL to external feed to associate with this event type

Returns

  • A pair: The input fields, Hidden fields
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get Tempcode for a Post Template adding/editing form.
 *
 * @param  ?AUTO_LINK $id ID of category (null: new category)
 * @param  SHORT_TEXT $title The title
 * @param  SHORT_TEXT $logo The theme image code
 * @param  URLPATH $external_feed URL to external feed to associate with this event type
 * @return array A pair: The input fields, Hidden fields
 */

public function get_form_fields(?int $id = null, string $title = '', string $logo = '', string $external_feed = '') : array