Function __global->insert_code_after__by_linenum
Definitions
sources/override_api.php
- Insert some code into a function in the given code snippet, by line number (after line number).
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: bool
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$code | string | required parameter | N/A | N/A | The code |
$function | string | required parameter | N/A | N/A | Name of the function |
$linenum | integer | required parameter | N/A | N/A | Line number relative to start of function |
$newcode | string | required parameter | N/A | N/A | Code to insert |
$fail_ok | boolean | False | N/A | N/A | Whether a failure should attach a message (false: a failure should cause a critical error) |
Return
- Success status
- Type: boolean
- Set: N/A
- Range: N/A