user.module
Версия 1.892.2.14 (checked in on 2009/07/01 at 20:51:56 by goba)
Позволяет пользователям регистрироваться и входить в систему.
Константы
Имя | Описание |
---|---|
EMAIL_MAX_LENGTH | Максмальная длина сообщения e-mail. |
USERNAME_MAX_LENGTH | Константа, указывающая на максимальную длину пользовательского имени. |
Функции
Имя | Описание |
---|---|
template_preprocess_user_picture | Process variables for user-picture.tpl.php. |
theme_user_list | Темизирует список пользователей. |
theme_user_signature | Темизирует подпись пользователя. |
user_access | Определяет, имеет ли пользователь необходимое право доступа. |
user_action_info | Реализация hook_action_info(). |
user_authenticate | Try to log in the user locally. |
user_authenticate_finalize | Finalize the login process. Must be called when logging in a user. |
user_block | Реализация hook_block(). |
user_block_ip_action | Implementation of a Drupal action. Adds an access rule that blocks the user's IP address. |
user_block_user_action | Implementation of a Drupal action. Blocks the current user. |
user_build_content | Строит структурированный массив, представляющий содержимое профиля пользователя. |
user_build_filter_query | Build query for user administration filters based on session. |
user_category_load | Return a user object after checking if any profile category in the path exists. |
user_comment | Реализация hook_comment(). |
user_delete | Удаляет пользователя. |
user_edit_access | Access callback for user account editing. |
user_edit_form | |
user_elements | Реализация hook_elements(). |
user_external_load | |
user_external_login | Perform standard Drupal login operations for a user object. |
user_external_login_register | Helper function for authentication modules. Either login in or registers the current user, based on username. Either way, the global $user object is populated based on $name. |
user_fields | |
user_file_download | Implementation of hook_file_download(). |
user_filters | List user administration filters that can be applied. |
user_forms | Реализация hook_forms(). |
user_get_authmaps | Discover which external authentication module(s) authenticated a username. |
user_help | Реализация hook_help(). |
user_hook_info | Implementation of hook_hook_info(). |
user_init | |
user_is_anonymous | |
user_is_blocked | Checks for usernames blocked by user administration. |
user_is_logged_in | |
user_load | Загружает объект пользователя. |
user_load_self | |
user_login | Конструктор формы; генерирует форму для входа на сайт. |
user_login_authenticate_validate | A validate handler on the login form. Check supplied username/password against local users table. If successful, sets the global $user object. |
user_login_block | |
user_login_default_validators | Set up a series for validators which check for blocked/denied users, then authenticate against local database, then return an error if authentication fails. Distributed authentication modules are welcome to use hook_form_alter() to change this series... |
user_login_final_validate | A validate handler on the login form. Should be the last validator. Sets an error if user has not been authenticated yet. |
user_login_name_validate | A FAPI validate handler. Sets an error if supplied username has been blocked or denied access. |
user_login_submit | Submit handler for the login form. Redirects the user to a page. |
user_mail | Implementation of hook_mail(). |
user_mail_tokens | Return an array of token to value mappings for user e-mail messages. |
user_menu | Реализация hook_menu(). |
user_module_invoke | Вызывает хук hook_user() в каждом модуле. |
user_multiple_delete_confirm | |
user_multiple_delete_confirm_submit | |
user_multiple_role_edit | Callback function for admin mass adding/deleting a user role. |
user_page_title | Menu item title callback - use the user name if it's not the current user. |
user_password | Создаёт случайный буквенно-цифровой пароль. |
user_pass_rehash | |
user_pass_reset_url | |
user_perm | Реализация hook_perm(). |
user_preferred_language | Get the language object preferred by the user. This user preference can be set on the user account editing page, and is only available if there are more than one languages enabled on the site. If the user did not choose a preferred language, or is the... |
user_register | Конструктор формы; Форма регистрации пользователя. |
user_register_access | |
user_register_submit | Обработчик формы регистрации пользователя. |
user_register_validate | |
user_roles | Возвращает массив ролей, соответствующих указанным условиям. |
user_save | Сохраняет изменения аккаунта пользователя либо добавляет нового пользователя. |
user_search | Реализация hook_search(). |
user_set_authmaps | Save mappings of which external authentication module(s) authenticated a user. Maps external usernames to user ids in the users table. |
user_theme | Реализация hook_theme(). |
user_uid_optional_load | |
user_uid_optional_to_arg | Возвращает uid текущего пользователя. |
user_user | Реализация hook_user(). |
user_user_operations | Implementation of hook_user_operations(). |
user_user_operations_block | Административная функция для массовой блокировки пользователей. |
user_user_operations_unblock | Callback function for admin mass unblocking users. |
user_validate_mail | |
user_validate_name | Проверяет синтаксис заданного имени. |
user_validate_picture | |
user_view_access | |
_user_categories | Retrieve a list of all user setting/information categories and sort them by weight. |
_user_edit_submit | |
_user_edit_validate | |
_user_forms | Retrieve a list of all form elements for the specified category. |
_user_mail_notify | Создает и посылает электронное письмо с уведомлением, когда с данной учетной записью производятся определенные операции. See alsouser_mail_tokens() |
_user_mail_text | Returns a mail string for a variable name. |
_user_password_dynamic_validation | Add javascript and string translations for dynamic password validation (strength and confirmation checking). |
_user_sort |