D
D
Dmitry Baskakov2020-07-27 11:16:13
Drupal
Dmitry Baskakov, 2020-07-27 11:16:13

How to get CSRF token and other tokens for Drupal 7 form?

These values ​​are needed to correctly submit the form. However, how do you get them?

form_build_id
form_token
form_id


If this is impossible/difficult, then another question: how to form a form for output in a template?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
afi13, 2020-07-27
@afi13

The question is very strange. You don't need to fetch these values, Drupal checks the token itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question