$user Object

1 篇文章 / 0 new
$user Object
hook_username_alter(&$name, $account) Alter the username that is displayed for the user  
hook_user_cancel($edit, $account, $method) Act on user account cancellations  
hook_user_cancel_methods_alter(&$methods) Modify an account cancellation method  
hook_user_categories() Retrieve a list of user setting or profile information changes  
hook_user_delete($account) Respond to user deletion  
hook_user_insert(&$edit, $account, $category) 新帳號已建立  
hook_user_load($users) Act on user objects when loaded from the database  
hook_user_login(&$edit, $account) 使用者驗證成功後顯示前呼叫  
hook_user_logout($account) The user just logged out  
hook_user_operations() Add mass user operations  
hook_user_presave(&$edit, $account, $category) A user account is about to be created or updated  
hook_user_role_delete($role) Inform other modules that a user role has been deleted  
hook_user_role_insert($role) Inform other modules that a user role has been added  
hook_user_role_update($role) Inform other modules that a user role has been updated  
hook_user_update(&$edit, $account, $category) A user account was updated  
hook_user_view($account, $view_mode, $langcode) 顯示使用者資訊內容前呼叫, 資料已載入完成  
hook_user_view_alter(&$build) 變更 user page 顯示內容  
global $user; 取得當前User物件資料 全域變數
drupal_anonymous_user() 傳回匿名使用者 $user 資料內容 bootstrap.inc
user_hash_password($password, $count_log2 = 0) 明密碼進行 hash password.inc
user_is_logged_in() 確認當前使用者是否已登入 user.module
user_external_login_register($name, $module) 外部身份驗證的用戶註冊和登錄  
user_password($length = 10) 產生指定長度的亂數密碼  
Free Web Hosting