A
A
Alexander Ivanov2016-02-04 12:13:55
Drupal
Alexander Ivanov, 2016-02-04 12:13:55

How to understand which module is responsible for the current webform?

I'm trying to insert a metric on drupal.
I looked at how others did it, and it worked.
This piece works and inserts data.

function name_form_webform_client_form_2_alter(&$form, &$form_state) {
  $form['#attributes']['onsubmit'] = "yaCounter1111115.reachGoal('FORM2'); return true;";
  $form['actions']['submit']['#attributes']['id'] = "lid1";
}

I have no connection with the developer, so I'm trying to find out how he determined the name of the form module

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2016-02-04
@cimonlebedev

Answer here
How to add metric in Drupal 7?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question