Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function code_testing_user_login(&$edit, $account) {
- watchdog('code_testing', 'User name: %name, user access: %access, user login: %login', array('%name' => $account->name, '%access' => $account->access, '%login' => $account->login), WATCHDOG_DEBUG);
- }
- function mymodule_user_login(&$edit, $account) {
- if ($account->access == 0) {
- // The user has never logged in before.
- }
- }
- function MODULE_user_login(&$edit, $account){
- debug($account->access);
- }
- function MYMODULE_user_login(&$edit, $account) {
- if (empty($_GET['destination'])) {
- if (!isset($_POST['form_id']) || $_POST['form_id'] != 'user_pass_reset') {
- drupal_goto('somewhere');
- }
- }
- }
Add Comment
Please, Sign In to add comment