Function __global->_lang_remap

Definitions

sources/lang3.php

  • Remap the specified content language string, 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
$lang_id mixed required parameter N/A N/A The ID (if multi-lang-content on), or the string itself (if multi-lang-content off)
$text string required parameter N/A N/A The text to remap to
$db ?object Null N/A N/A The database connector to use (null: standard site connector)
$comcode boolean False N/A N/A Whether it is to be parsed as Comcode
$pass_id ?string Null N/A N/A The special identifier for this content language string on the page it will be displayed on; this is used to provide an explicit binding between languaged elements and greater templated areas (null: none)
$for_member ?MEMBER Null N/A N/A The member that owns the content this is for (null: current member)
$as_admin boolean False N/A N/A Whether to generate Comcode as arbitrary admin
$leave_source_user boolean False N/A N/A Whether to leave the source member as-is (as opposed to resetting it to the current member)

Return

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