Timeline for Drupal 7 Get field value by machine name and pass to javascript
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 5, 2017 at 21:40 | vote | accept | lane | ||
| Oct 5, 2017 at 21:22 | history | edited | lane | CC BY-SA 3.0 | edited title |
| Oct 5, 2017 at 20:56 | comment | added | lane | Updating to include Drupal version - thanks @neograph | |
| Oct 5, 2017 at 20:19 | answer | added | Kevin | timeline score: 2 | |
| Oct 5, 2017 at 20:19 | comment | added | Kevin | It should be Drupal.settings.mymodule.test not Drupal.settings.test. All of this code should live in a preprocess hook (either page or node, whichever is more appropriate for your use case). For the node, you can try $node = menu_get_object('node');. | |
| Oct 5, 2017 at 20:18 | comment | added | Neograph734 | Could you include the Drupal version you are using in the question? | |
| Oct 5, 2017 at 20:14 | review | First posts | |||
| Oct 5, 2017 at 20:19 | |||||
| Oct 5, 2017 at 20:12 | history | asked | lane | CC BY-SA 3.0 |