Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Use it for questions about the Form API. Don't use it for entity or entity field forms.
0
votes
3
answers
324
views
How to use Form API
I'm new to drupal, and especially new to drupal form API. I see all the documentation which seems to make sense. They miss one key instruction that you need to create .module / .info files. I have cre …
1
vote
How to use Form API
I was totally new to drupal, drupal modules (creating) and the form API.
Here is the basics to getting a simple form loaded with the menu link. Note the credits go to @Clive.
First of all I have a …
1
vote
1
answer
127
views
Validation issue
The first validate function works fine, however the second doesn't. Is there something I'm missing / doing wrong. I want to get the basics of too many characters inputted or too few. Using Drupal 6.
…
0
votes
1
answer
3k
views
Setting the default value for a text field as a variable in Form API
I thought this would be straight forward but my lack of drupal knowledge is holing me back. I want to grab the email from the logged in user, and set it as the default value of the form. I can grab th …
1
vote
1
answer
665
views
How to change the database drupal forms send to
It's super easy using php and SQL but how do you change the default database drupal 6 saves posted data in the forms? To an external database? …
0
votes
1
answer
74
views
Possible to pull the validate hook on forms not in form api
Is it possible to utilise the validate hook from within a node rather than a module? The code below works within a module calling a form with the form API. But if i was to have a variable in a node pa …
0
votes
2
answers
889
views
Adding html/css to a module form
How would I go about adding html/css into this module e.g. to place the different form items into a table, so i could have a column with one field entry the next column with another entry, and then ro …
0
votes
1
answer
237
views
Email Validation php
When validating an email address using the code below I get this error when i run the same code from within a drupal node, where I coded a form using php/html
if (filter_var($email, FILTER_VALIDATE_E …
1
vote
1
answer
3k
views
How to populate a dropdown list from array in FORM API
Hopefully this is clearer, and my last question in a long time!
Using PDO I have connected to an external DB, I can query this and return an array of values, Using html/php I can populate a standard …
0
votes
1
answer
2k
views
Connecting to multiple databases of different type for form submission [duplicate]
I know I can get around this problem by hard coding using php, html to create my forms that submit to this. I know from Drupal Community Documentation this is not possible as standard. … or do i continue coding my forms by hand for each node? …
0
votes
1
answer
347
views
ahah helper populate dependent dropdown
I am using the ahah helper as I couldn't seem to get my dropdown lists to depend on each other anyother way in Drupal 6. Below is my code, I can hard code the changes so that the second dropdown popul …