Function Hook_ecommerce_permission->_get_fields
Definitions
sources/hooks/systems/ecommerce/permission.php
- Get fields for adding/editing one of these.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: object
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$name_suffix | string | Blank (empty string) | N/A | N/A | What to place onto the end of the field name |
$title | SHORT_TEXT | Blank (empty string) | N/A | N/A | Title |
$description | LONG_TEXT | Blank (empty string) | N/A | N/A | Description |
$enabled | BINARY | 1 | N/A | N/A | Whether it is enabled |
$price | ?REAL | 0 | N/A | N/A | The price (null: not set) |
$tax_code | ID_TEXT | 0% | N/A | N/A | The tax code |
$price_points | ?integer | Null | N/A | N/A | The price in points (null: not set) |
$hours | ?integer | Null | N/A | N/A | Number of hours for it to last for (null: unlimited) |
$type | ID_TEXT | member_privileges | N/A | N/A | Permission scope 'type' |
$privilege | ID_TEXT | Blank (empty string) | N/A | N/A | Permission scope 'privilege' |
$zone | ID_TEXT | Blank (empty string) | N/A | N/A | Permission scope 'zone' |
$page | ID_TEXT | Blank (empty string) | N/A | N/A | Permission scope 'page' |
$module | ID_TEXT | Blank (empty string) | N/A | N/A | Permission scope 'module' |
$category | ID_TEXT | Blank (empty string) | N/A | N/A | Permission scope 'category' |
$mail_subject | SHORT_TEXT | Blank (empty string) | N/A | N/A | Confirmation mail subject |
$mail_body | LONG_TEXT | Blank (empty string) | N/A | N/A | Confirmation mail body |
Return
- The fields
- Type: Tempcode
- Set: N/A
- Range: N/A