Commit 964ddc8d authored by Dave Reid's avatar Dave Reid
Browse files

Fixed schema length should be an int, and to update a real name, realname_delete() should be used.

parent 6fc61d5c
......@@ -17,7 +17,7 @@ function realname_schema() {
'realname' => array(
'description' => 'The generated real name of the user.',
'type' => 'varchar',
'length' => '255',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
......
......@@ -127,7 +127,7 @@ function realname_user_operations() {
function realname_user_operations_realname_update(array $uids) {
$accounts = user_load_multiple($uids);
foreach ($accounts as $account) {
realname_update($account);
realname_delete($account->uid);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment