Function __global->insert_lang_comcode_attachments

Definitions

sources/attachments2.php

  • Insert some Comcode content that may contain attachments, and return details of the content language string.
  • 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
$level integer required parameter N/A N/A The level of importance this content language string holds
$text LONG_TEXT required parameter N/A N/A The Comcode content
$type ID_TEXT null N/A N/A The arbitrary type that the attached is for (e.g. download)
$id ID_TEXT Blank (empty string) N/A N/A The ID in the set of the arbitrary types that the attached is for
$db ?object Null N/A N/A The database connector to use (null: standard site connector)
$insert_as_admin boolean False N/A N/A Whether to insert it as an admin (any Comcode parsing will be carried out with admin privileges)
$for_member ?MEMBER Null N/A N/A The member to use for ownership permissions (null: current member)

Return

  • The content language string save fields
  • Type: array
  • Set: N/A
  • Range: N/A