Drupal PHP Cross Reference Content Management Systems

Summary: /modules/user/user.install - 913 lines - 29412 bytes - Source - Print

Description: (no description)

Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 22 functions

user_schema()
user_install()
user_update_dependencies()
_update_7000_user_role_grant_permissions()
user_update_7000()
user_update_7001()
user_update_7002()
user_update_7003()
user_update_7005()
user_update_7006()
user_update_7007()
user_update_7008()
user_update_7009()
user_update_7010()
user_update_7011()
user_update_7012()
user_update_7013()
user_update_7014()
user_update_7015()
user_update_7016()
user_update_7017()
user_update_7018()

Functions

Functions that are not part of a class:

user_schema()  line: 8
Implements hook_schema().

user_install()  line: 290
Implements hook_install().

user_update_dependencies()  line: 342
Implements hook_update_dependencies().

_update_7000_user_role_grant_permissions($rid, array $permissions, $module line: 376
Utility function: grant a set of permissions to a role during update.

This function is valid for a database schema version 7000.

param: $rid
param: $permissions
param: $module
user_update_7000(&$sandbox line: 409
Increase the length of the password field to accommodate better hashes.

Also re-hashes all current passwords to improve security. This may be a
lengthy process, and is performed batch-wise.
user_update_7001()  line: 460
Remove the 'threshold', 'mode' and 'sort' columns from the {users} table.

These fields were previously used to store per-user comment settings.
user_update_7002(&$sandbox line: 472
Convert user time zones from time zone offsets to time zone names.

user_update_7003()  line: 545
Update user settings for cancelling user accounts.

Prior to 7.x, users were not able to cancel their accounts. When
administrators deleted an account, all contents were assigned to uid 0,
which is the same as the 'user_cancel_reassign' method now.
user_update_7005(&$sandbox line: 571
Changes the users table to allow longer e-mail addresses.

user_update_7006(&$sandbox line: 594
Add module data to {role_permission}.

user_update_7007()  line: 613
Add a weight column to user roles.

user_update_7008()  line: 621
If 'user_register' variable was unset in Drupal 6, set it to be the same as
the Drupal 6 default setting.

user_update_7009()  line: 632
Converts fields that store serialized variables from text to blob.

user_update_7010()  line: 646
Update the {user}.signature_format column.

user_update_7011()  line: 695
Placeholder function.

As a fix for user_update_7011() not updating email templates to use the new
tokens, user_update_7017() now targets email templates of Drupal 6 sites and
already upgraded sites.
user_update_7012(&$sandbox line: 705
Add the user's pictures to the {file_managed} table and make them managed
files.

user_update_7013(&$sandbox line: 779
Add user module file usage entries.

user_update_7014()  line: 807
Rename the 'post comments without approval' permission.

In Drupal 7, this permission has been renamed to 'skip comment approval'.
user_update_7015()  line: 821
Change {users}.signature_format into varchar.

user_update_7016()  line: 842
Update the database to match the schema.

user_update_7017()  line: 855
Update email templates to use new tokens.

This function upgrades customized email templates from the old !token format
to the new core tokens format. Additionally, in Drupal 7 we no longer e-mail
plain text passwords to users, and there is no token for a plain text
password in the new token system. Therefore, it also modifies any saved
templates using the old '!password' token such that the token is removed, and
displays a warning to users that they may need to go and modify the wording
of their templates.
user_update_7018()  line: 902
Ensure there is an index on {users}.picture.

title

Body