<?php

$sql_query = 'UPDATE ' . $config['table_prefix'] . 'calc_template SET ';
$sql_query .= <<<'EOT'
params = '{
    "title": "Текст: Объединение текста",
    "help": "text_concatenation",
  "parameters": {
        "result": {
            "type": "Field",
            "name": "result",
            "description": "Поле-получатель",
            "type_field": 3,
            "help": "tpl_to_field"
        },
            "field1": {
            "type": "LinkField",
            "name": "field1",
            "description": "Выберите поле для шаблона",
            "type_field": [1,2,3,4,5,7,14],
            "help": "tpl_sel_field"
        },
        "func_row": {
            "type": "String",
            "name": "func_row",
            "description": "Поле записи функции",
            "textarea": true,
            "help": "tpl_func_field"
        },
        "flex_data": {
            "type": "String",
            "name": "flex_data",
            "description": "Результат",
            "textarea": true,
            "help": "tpl_flex_string"
        }
    },
   "events": [
       {
           "type": 1
       },
       {
           "type": 3,
           "field": "field1"
       }
   ]
}' WHERE id = 108
EOT;
run_query($sql_query);