Hello. For some reason, the module that uses the forms API in Drupal does not work correctly for me. The forms themselves are displayed normally, but when you change the settings and authorize the user, the Drupal displays a white page that disappears after the update. A white screen occurs when sending data from other forms, for example when logging in or saving the configuration. Platform: Drupal 6.20 Module file contents: <? Php

/** *@file *Шаблоны форм */ /** * Форма */ function formchecklinks_page(){ $output =drupal_get_form('formchecklinks_nameform'); return $output; } function formchecklinks_nameform(){ $form['#method']='post'; $form['task_name']=array( '#title'=>t('Название задания'), '#type'=>'textfield', '#description'=>t('Поле для ввода имени задания'), '#size' => '30'); $form['email']=array( '#title'=>t('Email'), '#type'=>'textfield', '#description'=>t('Пожалуйста, введите адрес вашей электронной почты'), '#size' => '30', '#default_value' => $user->mail, '#required'=>TRUE); $form['file']=array( '#title'=>t('Файл с заданием в формате CSV'), '#type'=>'file', '#description'=>t('Пожалуйста, выберите файл с заданием '), '#required'=>TRUE ); $pereodic = array( '0'=>t('Один раз'), '1'=>t('Каждый день'), '2'=>t('Раз в 2 дня'), '3'=>t('Раз в 3 дня'), '7'=>t('Раз в неделю'), ); $form['pereodic']=array( '#title'=>t('Переодичность проверки'), '#type'=>'radios', '#description'=>t('Выберите переодичность проверки'), '#options'=>$pereodic, '#required'=>TRUE, '#default_value'=>'0' ); $form['submit']=array ( '#value'=>t('Подтвердить'), '#type'=>'submit', ); return $form; } 

    1 answer 1

    $ output = drupal_get_form (' formchecklinks__index__nameform ');

    function formchecklinks_nameform () {..}

    Check the titles. It is not clear what is meant by "but when changing the settings and authorization of the user, the Drupal displays a white page that disappears after the update." can you explain?

    • I added explanations on the white screen to the topic and corrected the code. Didn't Help - Serge Yudin