Function __global->lang_code_to_default_content
Definitions
sources/lang3.php
- Take a language string and save it into a content language string in the database, for all translations.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$field_name | ID_TEXT | required parameter | N/A | N/A | The field name |
$code | ID_TEXT | required parameter | N/A | N/A | The language string codename |
$comcode | boolean | False | N/A | N/A | Whether the given codes value is to be parsed as Comcode |
$level | integer | 2 | N/A | N/A | The level of importance this content language string holds |
$db | ?object | Null | N/A | N/A | The database connector to use (null: standard site connector) |
$parameter1 | ?mixed | Null | N/A | N/A | The first parameter [string or Tempcode] (replaces {1}) (null: none) |
$parameter2 | ?mixed | Null | N/A | N/A | The second parameter [string or Tempcode] (replaces {2}) (null: none) |
$parameter3 | ?mixed | Null | N/A | N/A | The third parameter (replaces {3}). May be an array of [of string or Tempcode], to allow any number of additional args (null: none) |
Return
- The content language string save fields
- Type: array
- Set: N/A
- Range: N/A