Change Submit Button Text, Drupal 5.x
Sun, 09/21/2008 - 13:30 — SRW2D
For a project I am working on, I needed to change the text of Submit to Save in Drupal 5.
Add the user ID and Profile Module field to the Webform Module, Drupal 5.x
Sat, 09/20/2008 - 04:58 — SRW2D
I wanted to add the user id (uid) to the emails in that are created by the Webform Module and also wanted to add a name field that I created in the profile module.
I wanted to add the user id (uid) to the emails in that are created by the Webform Module and also wanted to add a name field that I created in the profile module.
To do this, I changed the _webform_mail_message function.
From this:
if ($user->uid) {
$message .= t('Submitted by user') .": $user->name [$ip_address]\n";
I wanted to add the user id (uid) to the emails in that are created by the Webform Module and also wanted to add a name field that I created in the profile module.
To do this, I changed the _webform_mail_message function.
From this:
if ($user->uid) {
$message .= t('Submitted by user') .": $user->name [$ip_address]\n";
Change the next UID in Drupal 5.x
Sat, 09/20/2008 - 02:00 — SRW2D
In a project I have, I needed to change the next user that registers to be user 30,000. I am using this as an employee number for the user. While I didn't find much info on how to do this. I ran into a post somewhere on the drupal site that was talking about the sequences table of the database.
If you change the users_uid value of the sequence table, then your next user will be the next numerical value. So change it to 9 and the next user will be 10.
Pretty simple.

  S.R. Ward Web Development Copyright © 2009

