Function Hook_import_cms_merge->update_comcode
Definitions
sources/hooks/modules/admin_import/cms_merge.php
- Import some Comcode, making changes as required.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $comcode | string | No | No | required parameter | N/A | N/A | Input |
| $referer_id | ?ID_TEXT | No | No | Null | N/A | N/A | Attachment referer type (null: not setting one now) |
Returns
- Output
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Import some Comcode, making changes as required.
*
* @param string $comcode Input
* @param ?ID_TEXT $referer_id Attachment referer type (null: not setting one now)
* @return string Output
*/
public function update_comcode(string $comcode, ?string $referer_id = null) : string
* Import some Comcode, making changes as required.
*
* @param string $comcode Input
* @param ?ID_TEXT $referer_id Attachment referer type (null: not setting one now)
* @return string Output
*/
public function update_comcode(string $comcode, ?string $referer_id = null) : string

