user.module

  1. drupal
    1. drupal6
    2. drupal7

Version 1.994 (checked in on 2009/05/27 at 02:21:53 by webchick)

Enables the user registration and login system.

Konstanten

NameBeschreibung
EMAIL_MAX_LENGTHMaximum length of user e-mail text field.
USERNAME_MAX_LENGTHMaximum length of username text field.

Funktionen & Methoden

NameBeschreibung
template_preprocess_user_pictureProcess variables for user-picture.tpl.php.
theme_user_listMake a list of users.
theme_user_signatureTheme output of user signature.
user_accessDetermine whether the user has a given privilege.
user_action_infoImplementation of hook_action_info().
user_authenticateTry to log in the user locally.
user_authenticate_finalizeFinalize the login process. Must be called when logging in a user.
user_block_configureImplementation of hook_block_configure().
user_block_listImplementation of hook_block_list().
user_block_saveImplementation of hook_block_save().
user_block_user_actionImplementation of a Drupal action. Blocks the current user.
user_block_viewImplementation of hook_block_view().
user_build_contentBuilds a structured array representing the profile content.
user_build_filter_queryExtends a query object for user administration filters based on session.
user_cancelCancel a user account.
user_cancel_accessMenu access callback; limit access to account cancellation pages.
user_cancel_urlGenerate a URL to confirm an account cancellation request.
user_category_loadReturn a user object after checking if any profile category in the path exists.
user_comment_viewImplementation of hook_comment_view().
user_edit_accessAccess callback for user account editing.
user_edit_form
user_elementsImplementation of hook_elements().
user_external_load
user_external_loginPerform standard Drupal login operations for a user object.
user_external_login_registerHelper 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_fieldable_infoImplementation of hook_fieldable_info().
user_field_build_modesImplementation of hook_field_build_modes().
user_file_deleteImplementation of hook_file_delete().
user_file_downloadImplementation of hook_file_download().
user_file_referencesImplementation of hook_file_references().
user_filtersList user administration filters that can be applied.
user_formsImplementation of hook_forms().
user_get_authmapsDiscover which external authentication module(s) authenticated a username.
user_helpImplementation of hook_help().
user_hook_infoImplementation of hook_hook_info().
user_init
user_is_anonymous
user_is_blockedChecks for usernames blocked by user administration.
user_is_logged_in
user_loadFetch a user object.
user_load_by_mailFetch a user object by email address.
user_load_by_nameFetch a user object by account name.
user_load_multipleLoad multiple users based on certain conditions.
user_load_self
user_loginForm builder; the main user login form.
user_login_authenticate_validateA 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_validatorsSet up a series for validators which check for blocked 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 in…
user_login_final_validateA validate handler on the login form. Should be the last validator. Sets an error if user has not been authenticated yet.
user_login_name_validateA FAPI validate handler. Sets an error if supplied username has been blocked.
user_login_submitSubmit handler for the login form. Redirects the user to a page.
user_mailImplementation of hook_mail().
user_mail_tokensReturn an array of token to value mappings for user e-mail messages.
user_menuImplementation of hook_menu().
user_module_invokeInvokes hook_user() in every module.
user_multiple_cancel_confirm
user_multiple_cancel_confirm_submitSubmit handler for mass-account cancellation form.
user_multiple_role_editCallback function for admin mass adding/deleting a user role.
user_page_titleMenu item title callback - use the user name if it's not the current user.
user_passwordGenerate a random alphanumeric password.
user_pass_rehash
user_pass_reset_url
user_permImplementation of hook_perm().
user_preferred_languageGet 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_registerForm builder; The user registration form.
user_register_access
user_register_submitSubmit handler for the user registration form.
user_register_validate
user_rolesRetrieve an array of roles matching specified conditions.
user_role_permissionsDetermine the permissions for one or more roles.
user_saveSave changes to a user account or add a new user.
user_searchImplementation of hook_search().
user_set_authmapsSave mappings of which external authentication module(s) authenticated a user. Maps external usernames to user ids in the users table.
user_themeImplementation of hook_theme().
user_uid_optional_load
user_uid_optional_to_argReturns the user id of the currently logged in user.
user_user_categoriesImplementation of hook_user_categories.
user_user_formImplementation of hook_user_form.
user_user_operationsImplementation of hook_user_operations().
user_user_operations_blockCallback function for admin mass blocking users.
user_user_operations_unblockCallback function for admin mass unblocking users.
user_user_submitImplementation of hook_user_submit().
user_user_validateImplementation of hook_user_validate().
user_user_viewImplementation of hook_user_view().
user_validate_mail
user_validate_nameVerify the syntax of the given name.
user_validate_picture
user_view_access
_user_cancelLast batch processing step for cancelling a user account.
_user_categoriesRetrieve a list of all user setting/information categories and sort them by weight.
_user_formsRetrieve a list of all form elements for the specified category.
_user_mail_notifyConditionally create and send a notification email when a certain operation happens on the given user account.
_user_mail_textReturns a mail string for a variable name.
_user_password_dynamic_validationAdd javascript and string translations for dynamic password validation (strength and confirmation checking).
_user_sort

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen