2018 comment: These notes are for the D6 version of bombplates.com. They are deprecated by the D8 version.
We've made various changes to the Drupal core and 3rd-party modules. A lot of these could (and probably should) eventually be moved into custom modules, but until then, here's the complete list.
***** jquery_ui *****
This module does not ship with the actual jquery ui code
Copy the folder over
**** sites/all/modules/loggintoboggan/loggintoboggan.module ****
Remove Messages
LINE 367 - logintoboggan_user_register_submit
- // Compose the appropriate user message--admin approvals don't require a validation email.
- if($reg_pass_set && variable_get('user_register', 1) == 1) {
- if ($pre_auth) {
- $message = t('A validation e-mail has been sent to your e-mail address. In order to gain full access to the site, you will need to follow the instructions in that message.');
- }
- else {
- $message = '';
- }
- } else {
- $message = t('Your password and further instructions have been sent to your e-mail address.');
- }
***** /modules/user/user.module ******
Allows their first name to be used in the welcome email
LINE 228 (user_save) add:
foreach ($array as $key => $value) {
if ($key == 'pass' && !empty($value)) {
$query .= "$key = '%s', ";
$v[] = md5($value);
}
+ // if they passed in a pass that has already been hashed
+ else if ($key == 'passh' && !empty($value))
+ {
+ $query .= "pass = '%s', ";
+ $v[] = $value;
+ }
LINE 2132- user_mail_tokens
function user_mail_tokens($account, $language) {
global $base_url;
+ $user = user_load(array('uid'=>$account->uid));
$tokens = array(
+ '!fname' => $user->profile_fname,
'!username' => $account->name,
'!site' => variable_get('site_name', 'Drupal'),
'!login_url' => user_pass_reset_url($account),
'!uri' => $base_url,
'!uri_brief' => preg_replace('!^https?://!', '', $base_url),
'!mailto' => $account->mail,
'!date' => format_date(time(), 'medium', '', NULL, $language->language),
'!login_uri' => url('user', array('absolute' => TRUE, 'language' => $language)),
'!edit_uri' => url('user/'. $account->uid .'/edit', array('absolute' => TRUE, 'language' => $language)),
);
if (!empty($account->password)) {
$tokens['!password'] = $account->password;
}
return $tokens;
}
LINE 2218 - _user_password_dynamic_validation
drupal_add_js(array(
'password' => array(
'strengthTitle' => t('Password strength:'),
'lowStrength' => t('Low'),
'mediumStrength' => t('Medium'),
'highStrength' => t('High'),
- 'tooShort' => t('It is recommended to choose a password that contains at least six characters. It should include numbers, punctuation, and both upper and lowercase letters.'),
- 'needsMoreVariation' => t('The password does not include enough variation to be secure. Try:'),
+ 'tooShort' => t('Your password must contain at least six characters. We also recommended that you include numbers, punctuation, and both upper and lowercase letters.'),
+ 'needsMoreVariation' => t('If you would like to make your password more secure. Try:'),
'addLetters' => t('Adding both upper and lowercase letters.'),
'addNumbers' => t('Adding numbers.'),
'addPunctuation' => t('Adding punctuation.'),
- 'sameAsUsername' => t('It is recommended to choose a password different from the username.'),
+ 'sameAsUsername' => t('Please select a password different from the username.'),
'confirmSuccess' => t('Yes'),
'confirmFailure' => t('No'),
'confirmTitle' => t('Passwords match:'),
'username' => (isset($user->name) ? $user->name : ''))),
'setting');
$complete = TRUE;
***** /includes/mail.inc *******
LINE 128 - Don't send emails that were cancelled in hook_mail_alter (or hook_mail)
// Optionally send e-mail.
- if ($send) {
+ if ($send && empty($message['cancel'])) {
$message['result'] = drupal_mail_send($message);
// Log errors
if (!$message['result']) {
watchdog('mail', 'Error sending e-mail (from %from to %to).', array('%from' => $message['from'], '%to' => $message['to']), WATCHDOG_ERROR);
drupal_set_message(t('Unable to send e-mail. Please contact the site administrator if the problem persists.'), 'error');
}
- }
+ } else {
+ $message['result'] = NULL;
+ }