}
/**
- * Perform an post login activities required by the UF -
- * e.g. for drupal: records a watchdog message about the new session, saves the login timestamp, calls hook_user op 'login' and generates a new session.
- * @param array $edit: The array of form values submitted by the user.
+ * Perform any post login activities required by the CMS -
+ * e.g. for drupal: records a watchdog message about the new session, saves the login timestamp,
+ * calls hook_user op 'login' and generates a new session.
*
- function userLoginFinalize($edit = array()){
+ * @param array params
+ *
+ * FIXME: Document values accepted/required by $params
+ */
+ function userLoginFinalize($params = array()){
+ }
+
+ /**
+ * Set timezone in mysql so that timestamp fields show the correct time
+ */
+ function setMySQLTimeZone(){
+ $timeZoneOffset = $this->getTimeZoneOffset();
+ if($timeZoneOffset){
+ $sql = "SET time_zone = '$timeZoneOffset'";
+ CRM_Core_DAO::executequery($sql);
+ }
}
+
+ /**
+ * Get timezone from CMS
+ * @return boolean|string
*/
+ function getTimeZoneOffset(){
+ }
}