diff --git a/logintoboggan_reminder.module b/logintoboggan_reminder.module index 350e936..3898293 100644 --- a/logintoboggan_reminder.module +++ b/logintoboggan_reminder.module @@ -13,8 +13,8 @@ function logintoboggan_reminder_menu() { $items["admin/config/system/logintoboggan_reminder"] = array( 'title' => 'LoginToboggan Reminder', 'page callback' => 'drupal_get_form', - 'page arguments' => array('logintoboggan_reminder_config_form'), - 'access arguments' => array('administer site configuration'), + 'page arguments' => array('logintoboggan_reminder_config_form'), + 'access arguments' => array('administer site configuration'), ); return $items; } @@ -46,10 +46,10 @@ function logintoboggan_reminder_config_form() { "#title" => t("Reminder message to show non-verified users:"), "#type" => "textarea", "#rows" => 3, - "#default_value" => variable_get("logintoboggan_reminder_msg", check_plain($default_msg)), + "#default_value" => variable_get("logintoboggan_reminder_msg", check_plain($default_msg)), "#description" => filter_xss_admin($default_msg), ); - + $form["logintoboggan_reminder_resend"] = array( "#title" => t("Append link to resend verification email?"), "#type" => "select", @@ -60,14 +60,14 @@ function logintoboggan_reminder_config_form() { "#default_value" => variable_get("logintoboggan_reminder_resend", "yes"), "#description" => t("If set to Yes, a link will be added to the end of the message which, when clicked, will re-send the user's verification email."), ); - + $form["logintoboggan_reminder_level"] = array( "#title" => t("Message level (type):"), "#type" => "select", "#options" => array( - "status" => "status", - "warning" => "warning", - "error" => "error" + "status" => t("status"), + "warning" => t("warning"), + "error" => t("error") ), "#default_value" => variable_get("logintoboggan_reminder_level", "warning"), ); @@ -92,10 +92,10 @@ function logintoboggan_reminder_init() { $pre_auth_role = variable_get('logintoboggan_pre_auth_role', -999); // What is the pre-authenticated role, set in logintoboggan? - // Does the user have this role? - // If so, display message. But NOT if we are in the act of validating!! + // Does the user have this role? + // If so, display message. But NOT if we are in the act of validating!! if (isset($user->roles) && isset($user->roles[$pre_auth_role]) && !$bool_is_validating) { - + $default_msg = t("You have not yet verified your account. Please check your email (including junk mail folders) for the validation email sent by this site, then click the link provided."); $msg = variable_get("logintoboggan_reminder_msg", $default_msg); $msg = filter_xss_admin($msg);