Function Hook_ecommerce_custom->get_needed_fields
Definitions
sources/hooks/systems/ecommerce/custom.php
- Get fields that need to be filled in in the purchasing module.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$type_code | ID_TEXT | required parameter | N/A | N/A | The product codename |
$from_admin | boolean | False | N/A | N/A | Whether this is being called from the Admin Zone. If so, optionally different fields may be used, including a purchase_id field for direct purchase ID input. |
Return
- A triple: The fields (use null for none), Hidden fields (use null for none), The text (use null for none), array of JavaScript function calls
- Type: array
- Set: N/A
- Range: N/A