Function __global->insert_code_after__by_command
Definitions
sources/override_api.php
- Insert some code into a function in the given code snippet, by command (after command).
- 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 |
$command | string | required parameter | N/A | N/A | The command we're searching to insert by |
$newcode | string | required parameter | N/A | N/A | Code to insert |
$instance_of_command | integer | 1 | N/A | N/A | We are inserting at this instance of the line (i.e. takes into account a literal line of code may exist in other places in a function). |
$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