summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Phillips2006-06-20 04:11:54 (GMT)
committer Chad Phillips2006-06-20 04:11:54 (GMT)
commit65b34056335d244d051b7da6b5fb95ced90f45fa (patch)
tree338465f9a15235fe50a289b9ade368cd625c2359
parentda112d8fba85fa404ac807112d679075dd3aeafb (diff)
#56402 -- Login Successful message. added option to display a 'Login successful' user message upon login.
-rwxr-xr-xlogintoboggan.module9
1 files changed, 9 insertions, 0 deletions
diff --git a/logintoboggan.module b/logintoboggan.module
index b1f3ff4..ecde025 100755
--- a/logintoboggan.module
+++ b/logintoboggan.module
@@ -615,6 +615,13 @@ function logintoboggan_settings() {
'#default_value' => $site403,
'#description' => t('Anonymous users will be presented with a login form along with an access denied message.')
);
+ $form['other']['login_successful'] = array(
+ '#type' => 'radios',
+ '#title' => t('Display login successful message'),
+ '#options' => array(t('disabled'), t('enabled')),
+ '#default_value' => variable_get('login_successful', 0),
+ '#description' => t('If enabled, users will receive a \'Login successful\' message upon login.')
+ );
return $form;
}
@@ -818,6 +825,8 @@ function logintoboggan_user($op, &$edit, &$user_edit, $category = NULL) {
);
return $form;
}
+ } elseif ($op == 'login' && variable_get('login_successful', 0)) {
+ drupal_set_message(t('Login successful.'));
}
}