I want to replace a word. I was trying to insert using API3 but it is not working properly.
Word replacement API3
$result = civicrm_api3('WordReplacement', 'create', [
'find_word' => "Contacts",
'replace_word' => "Data",
'id' => 1,
]);
Output {
"is_error": 0,
"version": 3,
"count": 1,
"id": 1,
"values": {
"1": {
"id": "1",
"find_word": "Contacts",
"replace_word": "Data",
"is_active": "",
"match_type": "",
"domain_id": "1"
}
}
But the values are not stored in 'civicrm_word_replacement' table. Please give some suggestion. When I am trying to insert a value using custom php script then it is showing me a following error.
PHP Fatal error: Uncaught Error: Call to undefined function _drupal_flush_css_js() in C:\xampp\htdocs\copy\sites\all\modules\civicrm\CRM\Utils\System\DrupalBase.php:300