Commit 001275d9 authored by Alexander Dubovskoy's avatar Alexander Dubovskoy

Fixes

parent fd2cc050
......@@ -32,8 +32,9 @@ function radon_callback_page_attachments(array &$attachments) {
* Implements hook_form_alter().
*/
function radon_callback_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
if (strpos($form_id, 'webform_submission_callback') === 0) {
unset($form['fz152_agreement']);
dpm($form);
if ($form['#webform_id'] == 'callback') {
unset($form['elements']['fz152_agreement']);
$form['close-btn'] = [
'#type' => 'markup',
'#markup' => '<div class="close-btn"></div>',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment