Lines Matching refs:form
9 * b.) modifies DokuWiki's register form so that
78 /* Legacy DokuWiki releases with old form class */
85 /* Newer DokuWiki releases with rewritten form class */
101 /* With HTTP authentication, there is no sense in showing a login form,
111 * Event handler to modify the registration form
112 * Version for legacy DokuWiki releases with old form class
115 $form = $event->data;
120 $pos = $form->findElementByAttribute('name', 'login');
123 $elem = $form->getElementAt($pos);
126 $form->replaceElement($pos, $elem);
130 so we supply a random one in hidden form fields. As this code only runs when
136 $pos = $form->findElementByAttribute('name', $name);
137 $form->replaceElement($pos, NULL);
138 $form->addHidden($name, $pwd);
143 * Event handler to modify the registration form
144 * Version for newer DokuWiki releases with rewritten form class
147 $form = $event->data;
152 $pos = $form->findPositionByAttribute('name', 'login');
155 $elem = $form->getElementAt($pos);
158 $form->replaceElement($elem, $pos);
162 so we supply a random one in hidden form fields. As this code only runs when
168 $pos = $form->findPositionByAttribute('name', $name);
169 $form->replaceElement(NULL, $pos);
170 $form->setHiddenField($name, $pwd);