<?php
run_query("UPDATE {$config['table_prefix']}calc_template SET
params = '{\r\n    \"title\": \"Текст: Обрезать текст\",\r\n    \"help\": \"cut_text\",\r\n    \"parameters\": {\r\n        \"source\": {\r\n            \"type\": \"Field\",\r\n            \"name\": \"source\",\r\n            \"description\": \"Поле-источник\",\r\n            \"type_field\": [3,4],\r\n            \"help\": \"source_field\"\r\n        },\r\n        \"result\": {\r\n            \"type\": \"Field\",\r\n            \"name\": \"result\",\r\n            \"description\": \"Поле-получатель\",\r\n            \"type_field\": [3],\r\n            \"help\": \"receiver_field\"\r\n        },\r\n        \"count\": {\r\n            \"type\": \"String\",\r\n            \"name\": \"count\",\r\n            \"description\": \"Количество символов\",\r\n            \"help\": \"count_symb\"\r\n        },\r\n        \"end_sentence\": {\r\n            \"type\": \"List\",\r\n            \"name\": \"end_sentence\",\r\n            \"values\":{\"0\":\"Нет\",\"1\":\"Да\"},\r\n            \"description\": \"Продлить до конца предложения\",\r\n            \"help\": \"tpl_end_sentence\"\r\n        }\r\n    },\r\n    \"events\": [\r\n        {\r\n            \"type\": 3,\r\n            \"field\": \"source\"\r\n        }\r\n    ]\r\n}'
WHERE id = 110");