Timeline for How do I edit an external database from the UI?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 4, 2019 at 8:15 | comment | added | Toki | Hi, you should probably add that kind of remark in a comment of the answer and not as an answer. And yes the rule is still working 3 years later, do you have PHP filter module enabled? | |
Dec 4, 2019 at 4:48 | comment | added | user97326 | your Rules module has working? because i follow your step for Rules module, is not working. Writing a rule (Rules module) to update datatest values each time a Drupal node is edited Event : After updating existing content of type External Data Condition : none Actions : Execute custom PHP code db_set_active('external_database'); db_query("UPDATE datatest SET column_int='[node:field-integer]', column_varchar='[node:field-varchar]', column_longtext='[node:field-long-text]', column_date='[node:field-date]' WHERE id=[node:title]"); db_set_active(); Show a message on the site (to confirm the rule h | |
Mar 31, 2017 at 6:37 | vote | accept | Toki | ||
Mar 30, 2017 at 14:28 | history | answered | Toki | CC BY-SA 3.0 |