Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
A beginners question regarding the quickest and easiet ways to implement simple forms in drupal.
I would like to have a form in a block that signs people up to a newsletter. All I want is their email address, either hit subscribe, unsubscribe and then submit, and have the values sent to a table in the database. I am not going to have any people creating user log-ins for this site (other than me as administrator), so this is the only way I am going to collect a list of people to mail to from my site.
After banging my head on this for a few days, I figured it out.
If it's documented, gosh I feel dumb. If it isn't, well--
Look for:
$form['privatemsgbody'] = array(
...
'#rows' => 5
Change the "5" in "rows" to anything bigger. "20" is very nice.
Your non-techie users who don't see the resize arrow at the bottom of the box may complain about the non-exisitant or tiny box. Enlarging the box makes it more user-friendly.
I have installed the pathauto module for drupal 5 and am facing a small problem. My URL is composed of the date and the title of the post. The problem is that I'm getting the wrong date in the URL.
Hope someone can help. At my site www.superjacent.net/cms I get a Drupal generated page advising "Page not found". If I enter /index.php then everything is ok.
For what it's worth, I've moved my drupal installation from the root (superjacent.net) to a sub-folder (superjacent.net/cms).
I have recently implemented views on an older site of mine and it works great, except the titles of the node objects listed in all of the views on the site are missing the hostname. For example instead of http://www.example.com/node/63 the title links to http://node/63 I set the URL in the settings.php file but this did not seem to help.
Seriously, I was just testing out aligns in the blocks and I made the mistake of closing the <Table align=”right”> with a </right> instead of a </table>
Then bam! The whole site got cut up into pieces, I tried to make out what was what and even managed to change the ‘right’ tag to ‘table’ but the whole site is ruined.
How can this distraction happen from such a little error?