Function Hook_ecommerce_tax_taxjar->form_input_tax_code
Definitions
sources/hooks/systems/ecommerce_tax/taxjar.php
- Attach additional service-specific fields for a tax input widget.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| &$field_set | Tempcode | Yes | No | required parameter | N/A | N/A | The form field template (passed by reference) |
| &$default_set | ID_TEXT | Yes | No | required parameter | N/A | N/A | The default set of fields to use (passed by reference) |
| $set_title | mixed | No | No | required parameter | N/A | N/A | A human intelligible name for this input field, provided in plain-text format or as HTML via do_lang_tempcode/protect_from_escaping |
| $description | mixed | No | No | required parameter | N/A | N/A | A description for this input field, provided in HTML format (string or Tempcode) |
| $set_name | ID_TEXT | No | No | required parameter | N/A | N/A | The name which this input field is for |
| $default | string | No | No | required parameter | N/A | N/A | The default value for this input field |
| $required | boolean | No | No | required parameter | N/A | N/A | Whether this is a required input field |
| $tabindex | ?integer | No | No | Null | N/A | N/A | The tab index of the field (null: not specified) |
Preview
Code (PHP)
/**
* Attach additional service-specific fields for a tax input widget.
*
* @param Tempcode $field_set The form field template (passed by reference)
* @param ID_TEXT $default_set The default set of fields to use (passed by reference)
* @param mixed $set_title A human intelligible name for this input field, provided in plain-text format or as HTML via do_lang_tempcode/protect_from_escaping
* @param mixed $description A description for this input field, provided in HTML format (string or Tempcode)
* @param ID_TEXT $set_name The name which this input field is for
* @param string $default The default value for this input field
* @param boolean $required Whether this is a required input field
* @param ?integer $tabindex The tab index of the field (null: not specified)
*/
public function form_input_tax_code(object &$field_set, string &$default_set, $set_title, $description, string $set_name, string $default, bool $required, ?int $tabindex = null)
* Attach additional service-specific fields for a tax input widget.
*
* @param Tempcode $field_set The form field template (passed by reference)
* @param ID_TEXT $default_set The default set of fields to use (passed by reference)
* @param mixed $set_title A human intelligible name for this input field, provided in plain-text format or as HTML via do_lang_tempcode/protect_from_escaping
* @param mixed $description A description for this input field, provided in HTML format (string or Tempcode)
* @param ID_TEXT $set_name The name which this input field is for
* @param string $default The default value for this input field
* @param boolean $required Whether this is a required input field
* @param ?integer $tabindex The tab index of the field (null: not specified)
*/
public function form_input_tax_code(object &$field_set, string &$default_set, $set_title, $description, string $set_name, string $default, bool $required, ?int $tabindex = null)

