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() { ...@@ -17,7 +17,7 @@ function realname_schema() {
'realname' => array( 'realname' => array(
'description' => 'The generated real name of the user.', 'description' => 'The generated real name of the user.',
'type' => 'varchar', 'type' => 'varchar',
'length' => '255', 'length' => 255,
'not null' => TRUE, 'not null' => TRUE,
'default' => '', 'default' => '',
), ),
......
...@@ -127,7 +127,7 @@ function realname_user_operations() { ...@@ -127,7 +127,7 @@ function realname_user_operations() {
function realname_user_operations_realname_update(array $uids) { function realname_user_operations_realname_update(array $uids) {
$accounts = user_load_multiple($uids); $accounts = user_load_multiple($uids);
foreach ($accounts as $account) { 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